MhtmlLoadOptions class

Allows to specify additional options when loading MailMessage from Mhtml format.

public class MhtmlLoadOptions : LoadOptions


Name Description
MhtmlLoadOptions() Initializes a new instance of this class that can be used to loading MailMessage from Mhtml format.


Name Description
MessageFormat { get; } Represents the mail message format.It can be in eml,msg or mhtml format. The default value is Eml.
PrefferedTextEncoding { get; set; } Gets or sets preferred encoding for message. Forcibly sets the preferred encoding for message subject and body. The default value is null.
PreserveEmbeddedMessageFormat { get; set; } Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading in MailMessage.
PreserveTnefAttachments { get; set; } Controls loading TNEF attachment behaviour.

See Also