| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- //
- // System.Web.Mail.MailHeader.cs
- //
- // Author(s):
- // Per Arneng <[email protected]>
- //
- //
- using System;
- using System.Collections;
- using System.Collections.Specialized;
- namespace System.Web.Mail {
-
- // This class represents the header of a mail with
- // all the header fields.
- internal class MailHeader {
-
- protected NameValueCollection data = new NameValueCollection();
-
- public string To {
- get { return data[ "To" ]; }
- set { data[ "To" ] = value; }
- }
- public string From {
- get { return data[ "From" ]; }
- set { data[ "From" ] = value; }
- }
- public string Cc {
- get { return data[ "Cc" ]; }
- set { data[ "Cc" ] = value; }
- }
-
- public string Bcc {
- get { return data[ "Bcc" ]; }
- set { data[ "Bcc" ] = value; }
- }
-
- public string Subject {
- get { return data[ "Subject" ]; }
- set { data[ "Subject" ] = value; }
- }
- public string Importance {
- get { return data[ "Importance" ]; }
- set { data[ "Importance" ] = value; }
- }
-
- public string Priority {
- get { return data[ "Priority" ]; }
- set { data[ "Priority" ] = value; }
- }
-
- public string MimeVersion {
- get { return data[ "Mime-Version" ]; }
- set { data[ "Mime-Version" ] = value; }
- }
- public string ContentType {
- get { return data[ "Content-Type" ]; }
- set { data[ "Content-Type" ] = value; }
- }
-
- public string ContentTransferEncoding{
- get { return data[ "Content-Transfer-Encoding" ]; }
- set { data[ "Content-Transfer-Encoding" ] = value; }
- }
- public string ContentDisposition {
- get { return data[ "Content-Disposition" ]; }
- set { data[ "Content-Disposition" ] = value; }
- }
- public string ContentBase {
- get { return data[ "Content-Base" ]; }
- set { data[ "Content-Base" ] = value; }
- }
-
- public string ContentLocation {
- get { return data[ "Content-Location" ]; }
- set { data[ "Content-Location" ] = value; }
- }
-
-
- public NameValueCollection Data {
- get { return data; }
- }
-
- }
- }
|