Compatibillity update: Made some changes to make everything
[mono.git] / mcs / class / System.Web / System.Web.Mail / MailMessage.cs
1 //\r
2 // System.Web.Mail.MailMessage.cs\r
3 //\r
4 // Author:\r
5 //    Lawrence Pit (loz@cable.a2000.nl)\r
6 //    Per Arneng (pt99par@student.bth.se)\r
7 //\r
8 \r
9 using System;\r
10 using System.Collections;\r
11 using System.Collections.Specialized;\r
12 using System.Text;\r
13 \r
14 namespace System.Web.Mail\r
15 {\r
16         /// <remarks>\r
17         /// </remarks>\r
18         public class MailMessage\r
19         {\r
20                 private ArrayList attachments;\r
21                 private string bcc;\r
22                 private string body;\r
23                 private Encoding bodyEncoding;\r
24                 private MailFormat bodyFormat;\r
25                 private string cc;              \r
26                 private string from;\r
27                 private ListDictionary headers;\r
28                 private MailPriority priority;\r
29                 private string subject;\r
30                 private string to;\r
31                 private string urlContentBase;\r
32                 private string urlContentLocation;\r
33                 \r
34                 // Constructor          \r
35                 public MailMessage ()\r
36                 {\r
37                         attachments = new ArrayList (8);\r
38                         headers = new ListDictionary ();\r
39                         bodyEncoding = Encoding.Default;\r
40                 }               \r
41         \r
42                 // Properties\r
43                 public IList Attachments {\r
44                         get { return (IList) attachments; }\r
45                 }               \r
46                 \r
47                 public string Bcc {\r
48                         get { return bcc; } \r
49                         set { bcc = value; }\r
50                 }\r
51         \r
52                 public string Body {\r
53                         get { return body; } \r
54                         set { body = value; }\r
55                 }\r
56 \r
57                 public Encoding BodyEncoding {\r
58                         get { return bodyEncoding; } \r
59                         set { bodyEncoding = value; }\r
60                 }\r
61 \r
62                 public MailFormat BodyFormat {\r
63                         get { return bodyFormat; } \r
64                         set { bodyFormat = value; }\r
65                 }               \r
66 \r
67                 public string Cc {\r
68                         get { return cc; } \r
69                         set { cc = value; }\r
70                 }\r
71 \r
72                 public string From {\r
73                         get { return from; } \r
74                         set { from = value; }\r
75                 }\r
76 \r
77                 public IDictionary Headers {\r
78                         get { return (IDictionary) headers; }\r
79                 }\r
80                 \r
81                 public MailPriority Priority {\r
82                         get { return priority; } \r
83                         set { priority = value; }\r
84                 }\r
85                 \r
86                 public string Subject {\r
87                         get { return subject; } \r
88                         set { subject = value; }\r
89                 }\r
90 \r
91                 public string To {\r
92                         get { return to; }   \r
93                         set { to = value; }\r
94                 }\r
95 \r
96                 public string UrlContentBase {\r
97                         get { return urlContentBase; } \r
98                         set { urlContentBase = value; }\r
99                 }\r
100 \r
101                 public string UrlContentLocation {\r
102                         get { return urlContentLocation; } \r
103                         set { urlContentLocation = value; }\r
104                 }\r
105 \r
106         }\r
107         \r
108 } //namespace System.Web.Mail\r