MailMessage Methods |
The MailMessage type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AppendChunk |
Adds a block of bytes to the source of the message.
|
![]() ![]() | AppendPartialMessage |
Adds the specified partial message to this message.
|
![]() ![]() | Clear |
Removes the specified elements from the message.
|
![]() ![]() | Clone |
Creates a copy of the message.
|
![]() | ConvertFromSystemNetMail |
Loads the message from System.Net.Mail.MailMessage object.
|
![]() | ConvertToSystemNetMail |
Exports the message to System.Net.Mail.MailMessage object.
|
![]() ![]() | Deserialize(String) |
Loads a message from the specified .XML file.
|
![]() ![]() | Deserialize(XmlReader) |
Loads a message from XML stream using the specified XmlReader object.
|
![]() | DeserializeAsync(String) |
async/await version of Deserialize(String).
|
![]() | DeserializeAsync(XmlReader) |
async/await version of Deserialize(XmlReader).
|
![]() | Dispose |
Removes the temporary folders and files that are associated with the mail message.
|
![]() ![]() | DomainKeysSign |
Signs the current e-mail message with DKIM and classic DomainKeys signatures.
|
![]() ![]() | DomainKeysVerify |
Verifies DKIM and classic DomainKeys signatures of the current e-mail message.
|
![]() | DomainKeysVerifyAsync |
async/await version of DomainKeysVerify.
|
![]() ![]() | EncodeAllHeaders |
Encodes all message headers into the specified encoding.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize |
Finalizes the instance of MailMessage object.
(Overrides ObjectFinalize.) |
![]() ![]() | ForwardAsAttachment |
Forwards a mail message as attached .EML file.
|
![]() ![]() | GetAllRecipients |
Gets the EmailAddressCollection object containing the e-mail addresses of all message recipients.
|
![]() ![]() ![]() | GetEncodedHeaderValue |
Encodes the value of the specified header.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() ![]() | GetHtmlAndRelatedFilesInMemory |
Gets HTML body with references to all inline attachments being replaced with user-defined indexed paths.
|
![]() ![]() | GetHtmlAndSaveRelatedFiles |
Extracts the HTML body of the message, saves the attached inline pictures and other related files to disk, and return the modified HTML body.
|
![]() ![]() | GetHtmlAndSaveRelatedFiles(String, VirtualMappingType, MessageFolderBehavior) |
Prepares the HTML body of the message for displaying in a web application: saves all embedded objects to a temporary location,
replaces their Content-ID's with their virtual paths in the temporary location, and returns the modified HTML body as a string.
|
![]() | GetHtmlAndSaveRelatedFilesAsync |
async/await version of GetHtmlAndSaveRelatedFiles.
|
![]() | GetHtmlAndSaveRelatedFilesAsync(String, VirtualMappingType, MessageFolderBehavior) |
async/await version of GetHtmlAndSaveRelatedFiles(String, VirtualMappingType, MessageFolderBehavior).
|
![]() ![]() | GetHtmlWithBase64EncodedRelatedFiles |
Gets the HTML body with all related files being embedded directly in the HTML body as base64 chunks.
|
![]() ![]() | GetMessageRawData |
Gets the source of the message as a byte array.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | ImportRelatedFiles |
Adds all the related files (referenced in HTML part of the message) as inline attachments.
|
![]() | ImportRelatedFilesAsync |
async/await version of ImportRelatedFiles(ImportRelatedFilesOptions).
|
![]() ![]() | IsBodyAvail |
Indicates if the body of the specified format is present in the message.
|
![]() ![]() | LoadBodyText(String, MessageBodyType) |
Loads the contents of the specified file into HTML or plain-text body of the message.
|
![]() ![]() | LoadBodyText(String, MessageBodyType, Encoding, ImportBodyOptions) |
Loads the contents of the specified file or web page into HTML or plain-text body of the message,
also attaching related objects such as inline images if necessary.
|
![]() | LoadBodyTextAsync(String, MessageBodyType) |
async/await version of LoadBodyText(String, MessageBodyType).
|
![]() | LoadBodyTextAsync(String, MessageBodyType, Encoding, ImportBodyOptions) |
async/await version of LoadBodyText(String, MessageBodyType, Encoding, ImportBodyOptions).
|
![]() ![]() | LoadMessage(Byte) |
Loads the message from a byte array.
|
![]() ![]() | LoadMessage(Stream) |
Loads the message from a stream.
|
![]() ![]() | LoadMessage(String) |
Loads the message from the specified file.
|
![]() | LoadMessageAsync(Stream) |
async/await version of LoadMessage(Stream).
|
![]() | LoadMessageAsync(String) |
async/await version of LoadMessage(String).
|
![]() ![]() | MakePlainBodyFromHtmlBody |
Creates a plain text body from the existing HTML body of the message.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Reset |
Resets all the properties of the MailMessage object to the default values.
|
![]() ![]() | SaveHtmlAndRelatedFiles |
Saves the HTML body of the message and all inline pictures and other inline objects to disk.
|
![]() | SaveHtmlAndRelatedFilesAsync |
async/await version of SaveHtmlAndRelatedFiles(String).
|
![]() ![]() | SaveMessage(Stream) |
Saves a message into the specified stream.
|
![]() ![]() | SaveMessage(String) |
Saves a message into the specified file.
|
![]() | SaveMessageAsync(Stream) |
async/await version of SaveMessage(Stream).
|
![]() | SaveMessageAsync(String) |
async/await version of SaveMessage(String).
|
![]() ![]() | Serialize(String) |
Saves the message into the specified .XML file.
|
![]() ![]() | Serialize(XmlWriter) |
Saves the message into XML stream using the specified XmlWriter object.
|
![]() | SerializeAsync(String) |
async/await version of Serialize(String).
|
![]() | SerializeAsync(XmlWriter) |
async/await version of Serialize(XmlWriter).
|
![]() ![]() | SetDateFromString |
Sets the date of the message creation as a string.
|
![]() ![]() | SetUniqueMessageID |
Sets a new unique value of Message-ID header and returns it.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |