System.Net.Mail.MailMessage: Property Members

The properties of System.Net.Mail.MailMessage are listed below. For a list of all members, see the MailMessage Members list.

See Also: Inherited members from System.Object

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.