System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Object `using System; using System.Web.Mail; class SmtpExample { public static void Main(string[] args) { // Construct message MailMessage msg= new MailMessage(); msg.From = "mono@example.com"; msg.To = "howard.cole@example.com"; msg.Subject = "An example email"; msg.Body = "<strong>This<strong> is an example of an HTML email.<p><pre>OK!</pre></p>" msg.BodyFormat = MailFormat.Html; // Send via SMTP server SmtpMail.SmtpServer="smtp.example.com"; SmtpMail.Send(msg); } }`

Provides properties and methods for constructing an e-mail message. Recommended alternative: .

- Constructor
  To be added

  Initializes a new instance of the class. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.Collections.IList a

  New attachments can be added to the mail message by a call to Message.Attachments.Add(MyMailMessage). See for an example of usage.

  Specifies the collection of attachments that are transmitted with the message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string'

  Recipients in the semicolon-delimited list can be either email addresses or address book display names.

  The primary and carbon copy () recipients do not see the addresses in the Bcc field.

  Gets or sets a semicolon-delimited list of email addresses that receive a blind carbon copy (BCC) of the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string' To be added

  Gets or sets the body of the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.Text.Encoding a To be added

  Gets or sets the encoding type of the body of the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.Mail.MailFormat To be added: an object of type 'MailFormat' To be added

  Gets or sets the content type of the body of the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string'

  Recipients in the semicolon-delimited list can be either email addresses or address book display names.

  Gets or sets a semicolon-delimited list of e-mail addresses that receive a carbon copy (CC) of the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.Collections.IDictionary To be added.

  The property is used to set extended properties for Collaboration Data Objects (CDO). For more information about CDO, see "Collaboration Data Objects" and "Configuration CoClass" in the MSDN library at http://msdn.microsoft.com/library.

  Gets a collection of objects that map to Microsoft Collaboration Data Objects (CDO) fields. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string' To be added

  Gets or sets the e-mail address of the sender. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.Collections.IDictionary a To be added

  Specifies the custom headers that are transmitted with the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.Mail.MailPriority To be added: an object of type 'MailPriority' To be added

  Gets or sets the priority of the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string' To be added

  Gets or sets the subject line of the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string'

  Recipients in the semicolon-delimited list can be either email addresses or address book display names.

  Gets or sets a semicolon-delimited list of recipient e-mail addresses. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string' To be added

  Gets or sets the Content-Base HTTP header, the URL base of all relative URLs used within the HTML-encoded body of the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string' To be added

  Gets or sets the Content-Location HTTP header for the e-mail message. Recommended alternative: .

  1.0.5000.0
  2.0.0.0
System.Obsolete("The recommended alternative is System.Net.Mail.MailMessage.")