| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- //
- // System.Web.Mail.MailMessage.cs
- //
- // Author:
- // Lawrence Pit ([email protected])
- // Per Arneng ([email protected])
- //
- using System;
- using System.Collections;
- using System.Collections.Specialized;
- using System.Text;
- namespace System.Web.Mail
- {
- /// <remarks>
- /// </remarks>
- public class MailMessage
- {
- private ArrayList attachments;
- private string bcc;
- private string body;
- private Encoding bodyEncoding;
- private MailFormat bodyFormat;
- private string cc;
- private string from;
- private ListDictionary headers;
- private MailPriority priority;
- private string subject;
- private string to;
- private string urlContentBase;
- private string urlContentLocation;
-
- // Constructor
- public MailMessage ()
- {
- attachments = new ArrayList (8);
- headers = new ListDictionary ();
- bodyEncoding = Encoding.Default;
- }
-
- // Properties
- public IList Attachments {
- get { return (IList) attachments; }
- }
-
- public string Bcc {
- get { return bcc; }
- set { bcc = value; }
- }
-
- public string Body {
- get { return body; }
- set { body = value; }
- }
- public Encoding BodyEncoding {
- get { return bodyEncoding; }
- set { bodyEncoding = value; }
- }
- public MailFormat BodyFormat {
- get { return bodyFormat; }
- set { bodyFormat = value; }
- }
- public string Cc {
- get { return cc; }
- set { cc = value; }
- }
- public string From {
- get { return from; }
- set { from = value; }
- }
- public IDictionary Headers {
- get { return (IDictionary) headers; }
- }
-
- public MailPriority Priority {
- get { return priority; }
- set { priority = value; }
- }
-
- public string Subject {
- get { return subject; }
- set { subject = value; }
- }
- public string To {
- get { return to; }
- set { to = value; }
- }
- public string UrlContentBase {
- get { return urlContentBase; }
- set { urlContentBase = value; }
- }
- public string UrlContentLocation {
- get { return urlContentLocation; }
- set { urlContentLocation = value; }
- }
- }
-
- } //namespace System.Web.Mail
|