Class MsgLoadOptions

MsgLoadOptions class

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

public class MsgLoadOptions : LoadOptions

Constructors

NameDescription
MsgLoadOptions()Initializes a new instance of this class that can be used to loading MailMessage from Msg format.

Properties

NameDescription
KeepOriginalEmailAddresses { get; set; }Gets or sets a value indicating whether need keep original email address.
MessageFormat { get; }Represents the mail message format.It can be in eml,msg or mhtml format. The default value is Eml.
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.
PreserveRtfContent { get; set; }Gets or sets a value indicating whether need keep rtf body in MailMessage.
PreserveTnefAttachments { get; set; }Controls loading TNEF attachment behaviour. By default the value is false.
RemoveSignature { get; set; }Gets or sets a value indicating whether signature will be removed while loading.
Timeout { get; set; }Limits the time in milliseconds of formatting message while converting. Default value 3 sec.

Events

NameDescription
event TimeoutReachedRaised if timed out while converting to MailMessage.

See Also