HtmlLoadOptions class

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

public class HtmlLoadOptions : LoadOptions


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


Name Description
MessageFormat { get; } Represents the mail message format.It can be in eml,msg or mhtml format. The default value is Eml.
PathToResources { get; set; } Path to directory with resources files.
PreferredTextEncoding { 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. By default the value is false.
ShouldAddPlainTextView { get; set; } Specifies whether to add a text representation of the body or not. Default value is false.

See Also