This documentation is archived and is not being maintained.

MailMessage Members

MailMessage overview

Public Constructors

public constructorMailMessage Constructor Initializes a new instance of the MailMessage class.

Public Properties

public propertyAttachments Specifies the collection of attachments that are transmitted with the message.
public propertyBcc Gets or sets a semicolon-delimited list of email addresses that receive a blind carbon copy (BCC) of the e-mail message.
public propertyBody Gets or sets the body of the e-mail message.
public propertyBodyEncoding Gets or sets the encoding type of the body of the e-mail message.
public propertyBodyFormat Gets or sets the content type of the body of the e-mail message.
public propertyCc Gets or sets a semicolon-delimited list of e-mail addresses that receive a carbon copy (CC) of the e-mail message.
public propertyFields [To be supplied.]
public propertyFrom Gets or sets the e-mail address of the sender.
public propertyHeaders Specifies the custom headers that are transmitted with the e-mail message.
public propertyPriority Gets or sets the priority of the e-mail message.
public propertySubject Gets or sets the subject line of the e-mail message.
public propertyTo Gets or sets a semicolon-delimited list of recipient e-mail addresses.
public propertyUrlContentBase Gets or sets the Content-Base HTTP header, the URL base of all relative URLs used within the HTML-encoded body of the e-mail message.
public propertyUrlContentLocation Gets or sets the Content-Location HTTP header for the e-mail message.

Public Methods

public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

MailMessage Class | System.Web.Mail Namespace

Show: