MhtSaveOptions

MhtSaveOptions class

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

The MhtSaveOptions type exposes the following members:

Constructors

NameDescription
MhtSaveOptions()Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.

Properties

NameDescription
mail_message_save_type
default_eml
default_emlx
default_msg
default_msg_unicode
default_oft
default_mhtml
default_html
rendered_contact_fieldsDefines groups of Contact fields which will be included in output mhtml.
Default value is ContactFieldsSet.AllExisting.
css_stylesGets or sets the additional css styles for the formatter.
default_page_header_formatDefault page header format.
default_header_formatDefault header line format.
before_headers_formatBefore headers format.
after_headers_formatAfter headers format.
rendering_headersGets list of headers for rendering.
timeoutLimits the time in milliseconds of formatting message while saving in Mht.
Default value 3 sec.
mht_format_optionsDefines additional options when saving in MHTML format.
Default value is MhtFormatOptions.WriteHeader
preserve_original_boundariesDefines whether need keep original boundaries in mail message when saving or not.
check_body_content_encodingDefines whether need check message body content encoding when saving. By default the value is false.
save_attachmentsGets or sets a value indicating whether to save attachments.
preserve_original_dateDefines whether need keep original date in mail message when saving or not.
Default value is true.
skip_inline_imagesDefines whether skip references on images at saving in mhtml or not.
Default value is false.
save_all_headersDefines whether need to save all headers in output mhtml or not.
Default value is false.
saved_headersGets list of headers which will be present in saved mhtml content.
Default value is empty list.

Methods

NameDescription
create_save_options(save_type)

See Also