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

This class is used to construct an email message, possibly with attachments.

`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); } }`
- Constructor
  To be added
  To be added
  1.0.5000.0
  2.0.0.0
- Property
  System.Collections.IList To be added a To be added 1.0.5000.0 2.0.0.0
- Property
  System.String To be added To be added: an object of type 'string' To be added 1.0.5000.0 2.0.0.0
- Property
  System.String To be added To be added: an object of type 'string' To be added 1.0.5000.0 2.0.0.0
- Property
  System.Text.Encoding The encoding of the text in the e-mail body. Default is utf8. a To be added 1.0.5000.0 2.0.0.0
- Property
  System.Web.Mail.MailFormat To be added To be added: an object of type 'MailFormat' To be added 1.0.5000.0 2.0.0.0
- Property
  System.String To be added To be added: an object of type 'string' To be added 1.0.5000.0 2.0.0.0
- Property
  System.Collections.IDictionary To be added. To be added. To be added. 1.0.5000.0 2.0.0.0
- Property
  System.String To be added To be added: an object of type 'string' To be added 1.0.5000.0 2.0.0.0
- Property
  System.Collections.IDictionary To be added a To be added 1.0.5000.0 2.0.0.0
- Property
  System.Web.Mail.MailPriority To be added To be added: an object of type 'MailPriority' To be added 1.0.5000.0 2.0.0.0
- Property
  System.String To be added To be added: an object of type 'string' To be added 1.0.5000.0 2.0.0.0
- Property
  System.String To be added To be added: an object of type 'string' To be added 1.0.5000.0 2.0.0.0
- Property
  System.String To be added To be added: an object of type 'string' To be added 1.0.5000.0 2.0.0.0
- Property
  System.String To be added To be added: an object of type 'string' To be added 1.0.5000.0 2.0.0.0
System.Obsolete("The recommended alternative is System.Net.Mail.MailMessage.")