This documentation is archived and is not being maintained.

MailMessage Members

Represents an e-mail message that can be sent using the SmtpClient class.

The MailMessage type exposes the following members.

  NameDescription
Public method MailMessage Overloaded. Initializes a new instance of the MailMessage class.
Top

  NameDescription
Public method Dispose Overloaded. Releases the resources used by the MailMessage.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property AlternateViews Gets the attachment collection used to store alternate forms of the message body.
Public property Attachments Gets the attachment collection used to store data attached to this e-mail message.
Public property Bcc Gets the address collection that contains the blind carbon copy (BCC) recipients for this e-mail message.
Public property Body Gets or sets the message body.
Public property BodyEncoding Gets or sets the encoding used to encode the message body.
Public property CC Gets the address collection that contains the carbon copy (CC) recipients for this e-mail message.
Public property DeliveryNotificationOptions Gets or sets the delivery notifications for this e-mail message.
Public property From Gets or sets the from address for this e-mail message.
Public property Headers Gets the e-mail headers that are transmitted with this e-mail message.
Public property IsBodyHtml Gets or sets a value indicating whether the mail message body is in Html.
Public property Priority Gets or sets the priority of this e-mail message.
Public property ReplyTo Gets or sets the ReplyTo address for the mail message.
Public property Sender Gets or sets the sender's address for this e-mail message.
Public property Subject Gets or sets the subject line for this e-mail message.
Public property SubjectEncoding Gets or sets the encoding used for the subject content for this e-mail message.
Public property To Gets the address collection that contains the recipients of this e-mail message.
Top
Show: