2 // System.Web.Mail.MailHeader.cs
5 // Per Arneng <pt99par@student.bth.se>
9 using System.Collections;
10 using System.Collections.Specialized;
12 namespace System.Web.Mail {
14 // This class represents the header of a mail with
15 // all the header fields.
16 internal class MailHeader {
18 protected NameValueCollection data = new NameValueCollection();
21 get { return data[ "To" ]; }
22 set { data[ "To" ] = value; }
26 get { return data[ "From" ]; }
27 set { data[ "From" ] = value; }
31 get { return data[ "Cc" ]; }
32 set { data[ "Cc" ] = value; }
36 get { return data[ "Bcc" ]; }
37 set { data[ "Bcc" ] = value; }
40 public string Subject {
41 get { return data[ "Subject" ]; }
42 set { data[ "Subject" ] = value; }
45 public string Importance {
46 get { return data[ "Importance" ]; }
47 set { data[ "Importance" ] = value; }
50 public string Priority {
51 get { return data[ "Priority" ]; }
52 set { data[ "Priority" ] = value; }
55 public string MimeVersion {
56 get { return data[ "Mime-Version" ]; }
57 set { data[ "Mime-Version" ] = value; }
60 public string ContentType {
61 get { return data[ "Content-Type" ]; }
62 set { data[ "Content-Type" ] = value; }
65 public string ContentTransferEncoding{
66 get { return data[ "Content-Transfer-Encoding" ]; }
67 set { data[ "Content-Transfer-Encoding" ] = value; }
70 public string ContentDisposition {
71 get { return data[ "Content-Disposition" ]; }
72 set { data[ "Content-Disposition" ] = value; }
75 public string ContentBase {
76 get { return data[ "Content-Base" ]; }
77 set { data[ "Content-Base" ] = value; }
80 public string ContentLocation {
81 get { return data[ "Content-Location" ]; }
82 set { data[ "Content-Location" ] = value; }
86 public NameValueCollection Data {