Aspose::Email::MhtSaveOptions Class Reference

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

Inherits Aspose::Email::SaveOptions.

Public Member Functions

ASPOSE_EMAIL_SHARED_API ContactFieldsSet get_RenderedContactFields () const
 Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting. More...
 
ASPOSE_EMAIL_SHARED_API void set_RenderedContactFields (ContactFieldsSet value)
 Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting. More...
 
ASPOSE_EMAIL_SHARED_API Aspose::Email::MhtFormatOptions get_MhtFormatOptions () const
 Defines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader | MhtFormatOptions.WriteOutlineAttachments. More...
 
ASPOSE_EMAIL_SHARED_API void set_MhtFormatOptions (Aspose::Email::MhtFormatOptions value)
 Defines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader | MhtFormatOptions.WriteOutlineAttachments. More...
 
ASPOSE_EMAIL_SHARED_API bool get_PreserveOriginalBoundaries () const
 Defines whether need keep original boundaries in mail message when saving or not. More...
 
ASPOSE_EMAIL_SHARED_API void set_PreserveOriginalBoundaries (bool value)
 Defines whether need keep original boundaries in mail message when saving or not. More...
 
ASPOSE_EMAIL_SHARED_API bool get_CheckBodyContentEncoding () const
 Defines whether need check message body content encoding when saving. More...
 
ASPOSE_EMAIL_SHARED_API void set_CheckBodyContentEncoding (bool value)
 Defines whether need check message body content encoding when saving. More...
 
ASPOSE_EMAIL_SHARED_API bool get_SaveAttachments () const
 Gets a value indicating whether to save attachments. More...
 
ASPOSE_EMAIL_SHARED_API void set_SaveAttachments (bool value)
 Sets a value indicating whether to save attachments. More...
 
ASPOSE_EMAIL_SHARED_API bool get_PreserveOriginalDate () const
 Defines whether need keep original date in mail message when saving or not. Default value is true. More...
 
ASPOSE_EMAIL_SHARED_API void set_PreserveOriginalDate (bool value)
 Defines whether need keep original date in mail message when saving or not. Default value is true. More...
 
ASPOSE_EMAIL_SHARED_API System::String get_CssStyles () const
 Gets the additional css styles for the formatter. More...
 
ASPOSE_EMAIL_SHARED_API void set_CssStyles (System::String value)
 Sets the additional css styles for the formatter. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< System::Collections::Specialized::StringDictionary > get_FormatTemplates () const
 Gets the format templates. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< System::Collections::Generic::List< System::String > > get_RenderingHeaders () const
 Gets list of headers for rendering. More...
 
ASPOSE_EMAIL_SHARED_API bool get_SkipInlineImages () const
 Defines whether skip references on images at saving in mhtml or not. Default value is false. More...
 
ASPOSE_EMAIL_SHARED_API void set_SkipInlineImages (bool value)
 Defines whether skip references on images at saving in mhtml or not. Default value is false. More...
 
ASPOSE_EMAIL_SHARED_API MhtSaveOptions ()
 Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format. More...
 
- Public Member Functions inherited from Aspose::Email::SaveOptions
ASPOSE_EMAIL_SHARED_API ConversionProgressEventHandler get_CustomProgressHandler () const
 Represents method that usually supplied by calling side and handles progress events. More...
 
ASPOSE_EMAIL_SHARED_API void set_CustomProgressHandler (ConversionProgressEventHandler value)
 Represents method that usually supplied by calling side and handles progress events. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< Aspose::Email::MailMessageSaveType > get_MailMessageSaveType () const
 Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format. The default value is Eml. More...
 
ASPOSE_EMAIL_SHARED_API void set_MailMessageSaveType (System::SharedPtr< Aspose::Email::MailMessageSaveType > value)
 Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format. The default value is Eml. More...
 

Static Public Attributes

static const ASPOSE_EMAIL_SHARED_API System::String DefaultPageHeaderFormat
 
static const ASPOSE_EMAIL_SHARED_API System::String DefaultHeaderFormat
 
static const ASPOSE_EMAIL_SHARED_API System::String MhtExportCss
 

Friends

class Aspose::Email::MhtMessageFormatter
 

Additional Inherited Members

- Static Public Member Functions inherited from Aspose::Email::SaveOptions
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< EmlSaveOptionsget_DefaultEml ()
 Gets options with default values for saving message to Eml format. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< MsgSaveOptionsget_DefaultMsg ()
 Gets options with default values for saving message to Msg(ASCII) format. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< MsgSaveOptionsget_DefaultMsgUnicode ()
 Gets options with default values for saving message to Msg(Unicode) format. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< MhtSaveOptionsget_DefaultMhtml ()
 Gets options with default values for saving message to Mhtml format. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< HtmlSaveOptionsget_DefaultHtml ()
 Gets options with default values for saving message to Html format. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< SaveOptionsCreateSaveOptions (System::SharedPtr< Aspose::Email::MailMessageSaveType > saveType)
 Creates a save options object of a class suitable for the specified save type. More...
 
- Protected Member Functions inherited from Aspose::Email::SaveOptions
ASPOSE_EMAIL_SHARED_API SaveOptions ()
 Hides the class constructor. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ MhtSaveOptions()

ASPOSE_EMAIL_SHARED_API Aspose::Email::MhtSaveOptions::MhtSaveOptions ( )

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

Member Function Documentation

◆ get_CheckBodyContentEncoding()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::MhtSaveOptions::get_CheckBodyContentEncoding ( ) const

Defines whether need check message body content encoding when saving.

◆ get_CssStyles()

ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::MhtSaveOptions::get_CssStyles ( ) const

Gets the additional css styles for the formatter.

The styles to be injected into resulting html body.

◆ get_FormatTemplates()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<System::Collections::Specialized::StringDictionary> Aspose::Email::MhtSaveOptions::get_FormatTemplates ( ) const

Gets the format templates.

The format templates.

◆ get_MhtFormatOptions()

ASPOSE_EMAIL_SHARED_API Aspose::Email::MhtFormatOptions Aspose::Email::MhtSaveOptions::get_MhtFormatOptions ( ) const

Defines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader | MhtFormatOptions.WriteOutlineAttachments.

◆ get_PreserveOriginalBoundaries()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::MhtSaveOptions::get_PreserveOriginalBoundaries ( ) const

Defines whether need keep original boundaries in mail message when saving or not.

◆ get_PreserveOriginalDate()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::MhtSaveOptions::get_PreserveOriginalDate ( ) const

Defines whether need keep original date in mail message when saving or not. Default value is true.

◆ get_RenderedContactFields()

ASPOSE_EMAIL_SHARED_API ContactFieldsSet Aspose::Email::MhtSaveOptions::get_RenderedContactFields ( ) const

Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.

◆ get_RenderingHeaders()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::String> > Aspose::Email::MhtSaveOptions::get_RenderingHeaders ( ) const

Gets list of headers for rendering.

◆ get_SaveAttachments()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::MhtSaveOptions::get_SaveAttachments ( ) const

Gets a value indicating whether to save attachments.

true if attachments should be saved; otherwise, false.

◆ get_SkipInlineImages()

ASPOSE_EMAIL_SHARED_API bool Aspose::Email::MhtSaveOptions::get_SkipInlineImages ( ) const

Defines whether skip references on images at saving in mhtml or not. Default value is false.

◆ set_CheckBodyContentEncoding()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::MhtSaveOptions::set_CheckBodyContentEncoding ( bool  value)

Defines whether need check message body content encoding when saving.

◆ set_CssStyles()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::MhtSaveOptions::set_CssStyles ( System::String  value)

Sets the additional css styles for the formatter.

The styles to be injected into resulting html body.

◆ set_MhtFormatOptions()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::MhtSaveOptions::set_MhtFormatOptions ( Aspose::Email::MhtFormatOptions  value)

Defines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader | MhtFormatOptions.WriteOutlineAttachments.

◆ set_PreserveOriginalBoundaries()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::MhtSaveOptions::set_PreserveOriginalBoundaries ( bool  value)

Defines whether need keep original boundaries in mail message when saving or not.

◆ set_PreserveOriginalDate()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::MhtSaveOptions::set_PreserveOriginalDate ( bool  value)

Defines whether need keep original date in mail message when saving or not. Default value is true.

◆ set_RenderedContactFields()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::MhtSaveOptions::set_RenderedContactFields ( ContactFieldsSet  value)

Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.

◆ set_SaveAttachments()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::MhtSaveOptions::set_SaveAttachments ( bool  value)

Sets a value indicating whether to save attachments.

true if attachments should be saved; otherwise, false.

◆ set_SkipInlineImages()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::MhtSaveOptions::set_SkipInlineImages ( bool  value)

Defines whether skip references on images at saving in mhtml or not. Default value is false.

Friends And Related Function Documentation

◆ Aspose::Email::MhtMessageFormatter

friend class Aspose::Email::MhtMessageFormatter
friend

Member Data Documentation

◆ DefaultHeaderFormat

const ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::MhtSaveOptions::DefaultHeaderFormat
static

◆ DefaultPageHeaderFormat

const ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::MhtSaveOptions::DefaultPageHeaderFormat
static

◆ MhtExportCss

const ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::MhtSaveOptions::MhtExportCss
static