Files
mono/mcs/class/System.Web/System.Web.Mail/MailMessage.cs
T
2002-04-26 15:02:02 +00:00

107 lines
2.0 KiB
C#

//
// System.Web.Mail.MailMessage.cs
//
// Author:
// Lawrence Pit ([email protected])
//
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Text;
namespace System.Web.Mail
{
/// <remarks>
/// </remarks>
public class MailMessage
{
private ArrayList attachments;
private string bcc;
private string body;
private Encoding bodyEncoding;
private MailFormat bodyFormat;
private string cc;
private string from;
private ListDictionary headers;
private MailPriority priority;
private string subject;
private string to;
private string urlContentBase;
private string urlContentLocation;
// Constructor
public MailMessage ()
{
attachments = new ArrayList (8);
headers = new ListDictionary ();
}
// Properties
public IList Attachments {
get { return (IList) attachments; }
}
public string Bcc {
get { return bcc; }
set { bcc = value; }
}
public string Body {
get { return body; }
set { body = value; }
}
public Encoding BodyEncoding {
get { return bodyEncoding; }
set { bodyEncoding = value; }
}
public MailFormat BodyFormat {
get { return bodyFormat; }
set { bodyFormat = value; }
}
public string Cc {
get { return cc; }
set { cc = value; }
}
public string From {
get { return from; }
set { from = value; }
}
public IDictionary Headers {
get { return (IDictionary) headers; }
}
public MailPriority Priority {
get { return priority; }
set { priority = value; }
}
public string Subject {
get { return subject; }
set { subject = value; }
}
public string To {
get { return to; }
set { to = value; }
}
public string UrlContentBase {
get { return urlContentBase; }
set { urlContentBase = value; }
}
public string UrlContentLocation {
get { return urlContentLocation; }
set { urlContentLocation = value; }
}
}
} //namespace System.Web.Mail