2 // System.Web.Mail.MailMessage.cs
\r
5 // Lawrence Pit (loz@cable.a2000.nl)
\r
6 // Per Arneng (pt99par@student.bth.se)
\r
10 using System.Collections;
\r
11 using System.Collections.Specialized;
\r
14 namespace System.Web.Mail
\r
18 public class MailMessage
\r
20 private ArrayList attachments;
\r
22 private string body = "";
\r
23 private Encoding bodyEncoding;
\r
24 private MailFormat bodyFormat;
\r
26 private string from;
\r
27 private ListDictionary headers;
\r
28 private MailPriority priority;
\r
29 private string subject = "";
\r
31 private string urlContentBase;
\r
32 private string urlContentLocation;
33 private Hashtable fields;
\r
36 public MailMessage ()
\r
38 attachments = new ArrayList (8);
\r
39 headers = new ListDictionary ();
\r
40 bodyEncoding = Encoding.Default;
41 fields = new Hashtable ();
\r
45 public IList Attachments {
\r
46 get { return (IList) attachments; }
\r
50 get { return bcc; }
\r
51 set { bcc = value; }
\r
54 public string Body {
\r
55 get { return body; }
\r
56 set { body = value; }
\r
59 public Encoding BodyEncoding {
\r
60 get { return bodyEncoding; }
\r
61 set { bodyEncoding = value; }
\r
64 public MailFormat BodyFormat {
\r
65 get { return bodyFormat; }
\r
66 set { bodyFormat = value; }
\r
74 public string From {
\r
75 get { return from; }
\r
76 set { from = value; }
\r
79 public IDictionary Headers {
\r
80 get { return (IDictionary) headers; }
\r
83 public MailPriority Priority {
\r
84 get { return priority; }
\r
85 set { priority = value; }
\r
88 public string Subject {
\r
89 get { return subject; }
\r
90 set { subject = value; }
\r
98 public string UrlContentBase {
\r
99 get { return urlContentBase; }
\r
100 set { urlContentBase = value; }
\r
103 public string UrlContentLocation {
\r
104 get { return urlContentLocation; }
\r
105 set { urlContentLocation = value; }
\r
109 public IDictionary Fields {
\r
111 return (IDictionary) fields;
117 } //namespace System.Web.Mail
\r