MhtSaveOptions

Inheritance: java.lang.Object, com.aspose.email.SaveOptions, com.aspose.email.HeadersFormattingOptions

public class MhtSaveOptions extends HeadersFormattingOptions

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

Constructors

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

Methods

Method Description
getTimeoutReachedHandler() Raised if timed out while saving to Mhtml.
setTimeoutReachedHandler(TimeoutReachedHandler value) Raised if timed out while saving to Mhtml.
getTimeout() Limits the time in milliseconds of formatting message while saving in Mht.
setTimeout(int value) Limits the time in milliseconds of formatting message while saving in Mht.
getMhtFormatOptions() Defines additional options when saving in MHTML format.
setMhtFormatOptions(int value) Defines additional options when saving in MHTML format.
getPreserveOriginalBoundaries() Defines whether need keep original boundaries in mail message when saving or not.
setPreserveOriginalBoundaries(boolean value) Defines whether need keep original boundaries in mail message when saving or not.
getCheckBodyContentEncoding() Defines whether need check message body content encoding when saving.
setCheckBodyContentEncoding(boolean value) Defines whether need check message body content encoding when saving.
getSaveAttachments() Gets or sets a value indicating whether to save attachments.
setSaveAttachments(boolean value) Gets or sets a value indicating whether to save attachments.
getPreserveOriginalDate() Defines whether need keep original date in mail message when saving or not.
setPreserveOriginalDate(boolean value) Defines whether need keep original date in mail message when saving or not.
getSkipInlineImages() Defines whether skip references on images at saving in mhtml or not.
setSkipInlineImages(boolean value) Defines whether skip references on images at saving in mhtml or not.

MhtSaveOptions()

public MhtSaveOptions()

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

getTimeoutReachedHandler()

public final TimeoutReachedHandler getTimeoutReachedHandler()

Raised if timed out while saving to Mhtml.

Returns: TimeoutReachedHandler

setTimeoutReachedHandler(TimeoutReachedHandler value)

public final void setTimeoutReachedHandler(TimeoutReachedHandler value)

Raised if timed out while saving to Mhtml.

Parameters:

Parameter Type Description
value TimeoutReachedHandler

getTimeout()

public final int getTimeout()

Limits the time in milliseconds of formatting message while saving in Mht. Default value 3 sek.

Returns: int

setTimeout(int value)

public final void setTimeout(int value)

Limits the time in milliseconds of formatting message while saving in Mht. Default value 3 sek.

Parameters:

Parameter Type Description
value int

getMhtFormatOptions()

public final int getMhtFormatOptions()

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

Returns: int

setMhtFormatOptions(int value)

public final void setMhtFormatOptions(int value)

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

Parameters:

Parameter Type Description
value int

getPreserveOriginalBoundaries()

public final boolean getPreserveOriginalBoundaries()

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

Returns: boolean

setPreserveOriginalBoundaries(boolean value)

public final void setPreserveOriginalBoundaries(boolean value)

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

Parameters:

Parameter Type Description
value boolean

getCheckBodyContentEncoding()

public final boolean getCheckBodyContentEncoding()

Defines whether need check message body content encoding when saving.

Returns: boolean

setCheckBodyContentEncoding(boolean value)

public final void setCheckBodyContentEncoding(boolean value)

Defines whether need check message body content encoding when saving.

Parameters:

Parameter Type Description
value boolean

getSaveAttachments()

public final boolean getSaveAttachments()

Gets or sets a value indicating whether to save attachments.

Value: ``` true ``` if attachments should be saved; otherwise, ``` false ```.

Returns: boolean

setSaveAttachments(boolean value)

public final void setSaveAttachments(boolean value)

Gets or sets a value indicating whether to save attachments.

Value: ``` true ``` if attachments should be saved; otherwise, ``` false ```.

Parameters:

Parameter Type Description
value boolean

getPreserveOriginalDate()

public final boolean getPreserveOriginalDate()

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

Returns: boolean

setPreserveOriginalDate(boolean value)

public final void setPreserveOriginalDate(boolean value)

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

Parameters:

Parameter Type Description
value boolean

getSkipInlineImages()

public final boolean getSkipInlineImages()

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

Returns: boolean

setSkipInlineImages(boolean value)

public final void setSkipInlineImages(boolean value)

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

Parameters:

Parameter Type Description
value boolean