EmailMessage Constructor | Create a new instance of an EmailMessage. |
BccAddresses | Get the current EmailAddressCollection of BCC addresses |
BodyText | The text that occurs within the body. By default, it is a MIME notice, but it can be overridden here. NOTE: This is only useful for 7 bit us-ascii currently. |
CcAddresses | Retrieve the collection of recipients that will appear in the "Cc" header of the email. |
ContentType | Set the content type string in the mime header |
EnvelopeFromAddress | Normally the FromAddress is used as the envelope-from address, but it can be overridden here, if it is not null. |
FromAddress | The address that appears in the From header. It will also be used as the Envelope From address in the SMTP negotiation, unless it is overridden by the EnvelopeFromAddress setting. |
HeaderCharSet | The charset that is used for encoding the headers |
HeaderEncoding | The mime encoding that is used for encoding the headers |
HtmlPart | Set the html part of the email. This is optional |
Organization | Get/set the organization (as it will appear in the organization header |
Subject | The subject line or subject header of the email. |
TextPart | Set the plain text part of the email. This is optional |
ToAddresses | Retrieve the collection of recipients that will appear in the "To" header of the email. |
XMailer | Get the current XMailer setting for the X-Mailer header. |
AddBccAddress | Overloaded. Add a recipient who will be "Blind Carbon Copied" as a recipient of the email. BCC addresses are not added to the email headers, but only appear during the "RCPT TO" SMTP negotiation. |
AddCcAddress | Overloaded. Add a Cc address to the Headers. This will also be used during the "RCPT TO" SMTP negotiation |
AddCustomHeader | Add a custom mail header, e.g. "X-MyHeader". |
AddMixedAttachment | Add an attachment which will appear to the user as a separate file. (It is not referred to in the email itself.) |
AddRelatedAttachment | Add an image which is referred to from another part of the email (probably the HTML attachment). You should set the ContentID of the file attachment before passing it in. |
AddToAddress | Overloaded. Add a To address to the Headers. This will also be used during the "RCPT TO" SMTP negotiation |
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object. |
GetHashCode (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. |
GetType (inherited from Object) | Gets the Type of the current instance. |
Send | Send out the email via the smtp server given. If the SMTP server throws an error, an SmtpException will be thrown. All other exceptions will be MailExceptions |
ToDataString | Render the encoded message for smtp "DATA" transmission. This is the final version that will get sent to the |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |