MhtSaveOptions Class

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

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public class MhtSaveOptions : HeadersFormattingOptions

The MhtSaveOptions type exposes the following members.

Constructors
  NameDescription
Public methodMhtSaveOptions
Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.
Properties
  NameDescription
Public propertyAfterHeadersFormat
After headers format.
(Inherited from HeadersFormattingOptions.)
Public propertyBeforeHeadersFormat
Before headers format.
(Inherited from HeadersFormattingOptions.)
Public propertyCheckBodyContentEncoding
Defines whether need check message body content encoding when saving.
Public propertyCssStyles
Gets or sets the additional css styles for the formatter.
(Inherited from HeadersFormattingOptions.)
Public propertyCustomProgressHandler
Represents method that usually supplied by calling side and handles progress events.
(Inherited from SaveOptions.)
Public propertyDefaultHeaderFormat
Default header line format.
(Inherited from HeadersFormattingOptions.)
Public propertyDefaultPageHeaderFormat
Default page header format.
(Inherited from HeadersFormattingOptions.)
Public propertyFormatTemplates
Gets the format templates.
(Inherited from HeadersFormattingOptions.)
Public propertyMailMessageSaveType
Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format. The default value is Eml.
(Inherited from SaveOptions.)
Public propertyMhtFormatOptions
Defines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader | MhtFormatOptions.WriteOutlineAttachments.
Public propertyPreserveOriginalBoundaries
Defines whether need keep original boundaries in mail message when saving or not.
Public propertyPreserveOriginalDate
Defines whether need keep original date in mail message when saving or not. Default value is true.
Public propertyRenderedContactFields
Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.
(Inherited from HeadersFormattingOptions.)
Public propertyRenderingHeaders
Gets list of headers for rendering.
(Inherited from HeadersFormattingOptions.)
Public propertySaveAttachments
Gets or sets a value indicating whether to save attachments.
Public propertySkipInlineImages
Defines whether skip references on images at saving in mhtml or not. Default value is false.
Public propertyTimeout
Limits the time in milliseconds of formatting message while saving in Mht. Default value 3 sek.
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Events
  NameDescription
Public eventTimeoutReached
Raised if timed out while saving to Mhtml.
See Also