Export (0) Print
Expand All

MailMessage Members

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

The following tables list the members exposed by the MailMessage type.

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

  Name Description
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

(see also Protected Methods )
  Name Description
Public method Dispose Overloaded. Releases the resources used by the MailMessage.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected method Dispose Overloaded. Releases the resources used by the MailMessage.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft