The methods of the EmailMessage class are listed below. For a complete list of EmailMessage class members, see the EmailMessage Members topic.
![]() | 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. |
![]() | Overloaded. Add a Cc address to the Headers. This will also be used during the "RCPT TO" SMTP negotiation |
![]() | Add a custom mail header, e.g. "X-MyHeader". |
![]() | Add an attachment which will appear to the user as a separate file. (It is not referred to in the email itself.) |
![]() | 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. |
![]() | Overloaded. Add a To address to the Headers. This will also be used during the "RCPT TO" SMTP negotiation |
![]() | Determines whether the specified Object is equal to the current Object. |
![]() | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
![]() | Gets the Type of the current instance. |
![]() | 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 |
![]() | Render the encoded message for smtp "DATA" transmission. This is the final version that will get sent to the |
![]() | Returns a String that represents the current Object. |
![]() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
![]() | Creates a shallow copy of the current Object. |