System.Net.Mail.MailMessage public class MailMessage : IDisposable Documentation public AlternateViewCollection AlternateViews { get; } public AttachmentCollection Attachments { get; } public MailAddressCollection Bcc { get; } public string Body { get; set; } public Encoding BodyEncoding { get; set; } public TransferEncoding BodyTransferEncoding { get; set; } public MailAddressCollection CC { get; } public DeliveryNotificationOptions DeliveryNotificationOptions { get; set; } public MailAddress From { get; set; } public NameValueCollection Headers { get; } public Encoding HeadersEncoding { get; set; } public bool IsBodyHtml { get; set; } public MailPriority Priority { get; set; } public MailAddress ReplyTo { get; set; } public MailAddressCollection ReplyToList { get; } public MailAddress Sender { get; set; } public string Subject { get; set; } public Encoding SubjectEncoding { get; set; } public MailAddressCollection To { get; } public MailMessage() public MailMessage(MailAddress from, MailAddress to) public MailMessage(string from, string to) public MailMessage(string from, string to, string subject, string body) public void Dispose() protected virtual void Dispose(bool disposing)