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;
\r
35 public MailMessage ()
\r
37 attachments = new ArrayList (8);
\r
38 headers = new ListDictionary ();
\r
39 bodyEncoding = Encoding.Default;
\r
43 public IList Attachments {
\r
44 get { return (IList) attachments; }
\r
48 get { return bcc; }
\r
49 set { bcc = value; }
\r
52 public string Body {
\r
53 get { return body; }
\r
54 set { body = value; }
\r
57 public Encoding BodyEncoding {
\r
58 get { return bodyEncoding; }
\r
59 set { bodyEncoding = value; }
\r
62 public MailFormat BodyFormat {
\r
63 get { return bodyFormat; }
\r
64 set { bodyFormat = value; }
\r
72 public string From {
\r
73 get { return from; }
\r
74 set { from = value; }
\r
77 public IDictionary Headers {
\r
78 get { return (IDictionary) headers; }
\r
81 public MailPriority Priority {
\r
82 get { return priority; }
\r
83 set { priority = value; }
\r
86 public string Subject {
\r
87 get { return subject; }
\r
88 set { subject = value; }
\r
96 public string UrlContentBase {
\r
97 get { return urlContentBase; }
\r
98 set { urlContentBase = value; }
\r
101 public string UrlContentLocation {
\r
102 get { return urlContentLocation; }
\r
103 set { urlContentLocation = value; }
\r
108 } //namespace System.Web.Mail
\r