System.Net.Mail.MailMessage Members

The members of System.Net.Mail.MailMessage are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes an empty instance of the System.Net.Mail.MailMessage class.

Initializes a new instance of the System.Net.Mail.MailMessage class by using the specified System.Net.Mail.MailAddress class objects.

Initializes a new instance of the System.Net.Mail.MailMessage class by using the specified string class objects.

Initializes a new instance of the System.Net.Mail.MailMessage class.

Public Properties

[read-only]
AlternateViewsAlternateViewCollection.

Gets the attachment collection used to store alternate forms of the message body.

[read-only]
AttachmentsAttachmentCollection.

Gets the attachment collection used to store data attached to this e-mail message.

[read-only]
BccMailAddressCollection.

Gets the address collection that contains the blind carbon copy (BCC) recipients for this e-mail message.

Bodystring.

Gets or sets the message body.

BodyEncodingSystem.Text.Encoding.

Gets or sets the encoding used to encode the message body.

[read-only]
CCMailAddressCollection.

Gets the address collection that contains the carbon copy (CC) recipients for this e-mail message.

DeliveryNotificationOptionsDeliveryNotificationOptions.

Gets or sets the delivery notifications for this e-mail message.

FromMailAddress.

Gets or sets the from address for this e-mail message.

[read-only]
HeadersSystem.Collections.Specialized.NameValueCollection.

Gets the e-mail headers that are transmitted with this e-mail message.

HeadersEncodingSystem.Text.Encoding.

Gets or sets the encoding used for the user-defined custom headers for this e-mail message.

IsBodyHtmlbool.

Gets or sets a value indicating whether the mail message body is in Html.

PriorityMailPriority.

Gets or sets the priority of this e-mail message.

ReplyToMailAddress.

Gets or sets the ReplyTo address for the mail message.

[read-only]
ReplyToListMailAddressCollection.

Gets or sets the list of addresses to reply to for the mail message.

SenderMailAddress.

Gets or sets the sender's address for this e-mail message.

Subjectstring.

Gets or sets the subject line for this e-mail message.

SubjectEncodingSystem.Text.Encoding.

Gets or sets the encoding used for the subject content for this e-mail message.

[read-only]
ToMailAddressCollection.

Gets the address collection that contains the recipients of this e-mail message.

Public Methods

Dispose()

Releases all resources used by the System.Net.Mail.MailMessage.

Protected Methods

Dispose(bool)

Releases the unmanaged resources used by the System.Net.Mail.MailMessage and optionally releases the managed resources.