MhtSaveOptions

MhtSaveOptions class

Inherits: Aspose::Email::HeadersFormattingOptions

Allows to specify additional options when saving MailMessage to Mhtml format.

The following example shows how to save MailMessage as MHTML.

var eml = MailMessage.Load("Message.eml");
eml.Save("target.mthml", SaveOptions.DefaultMhtml);
Dim eml = MailMessage.Load("Message.eml")
eml.Save("target.mthml", SaveOptions.DefaultMhtml)

Constructors

NameDescription
MhtSaveOptionsInitializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.

Methods

NameDescription
get_CheckBodyContentEncodingDefines whether need check message body content encoding when saving. By default the value is false.
get_MhtFormatOptionsDefines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader
get_PreserveOriginalBoundariesDefines whether need keep original boundaries in mail message when saving or not.
get_PreserveOriginalDateDefines whether need keep original date in mail message when saving or not. Default value is true.
get_SaveAllHeadersDefines whether need to save all headers in output mhtml or not. Default value is false.
get_SaveAttachmentsGets a value indicating whether to save attachments.
get_SavedHeadersGets list of headers which will be present in saved mhtml content. Default value is empty list.
get_SkipInlineImagesDefines whether skip references on images at saving in mhtml or not. Default value is false.
set_CheckBodyContentEncodingDefines whether need check message body content encoding when saving. By default the value is false.
set_MhtFormatOptionsDefines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader
set_PreserveOriginalBoundariesDefines whether need keep original boundaries in mail message when saving or not.
set_PreserveOriginalDateDefines whether need keep original date in mail message when saving or not. Default value is true.
set_SaveAllHeadersDefines whether need to save all headers in output mhtml or not. Default value is false.
set_SaveAttachmentsSets a value indicating whether to save attachments.
set_SkipInlineImagesDefines whether skip references on images at saving in mhtml or not. Default value is false.