com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MhtSaveOptions



  • public class MhtSaveOptions
    extends HeadersFormattingOptions

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

    • Constructor Detail

      • MhtSaveOptions

        public MhtSaveOptions()

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

    • Method Detail

      • getTimeoutReachedHandler

        public final TimeoutReachedHandler getTimeoutReachedHandler()

        Raised if timed out while saving to Mhtml.

      • setTimeoutReachedHandler

        public final void setTimeoutReachedHandler(TimeoutReachedHandler value)

        Raised if timed out while saving to Mhtml.

      • getTimeout

        public final int getTimeout()

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

      • setTimeout

        public final void setTimeout(int value)

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

      • getMhtFormatOptions

        public final int getMhtFormatOptions()

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

      • setMhtFormatOptions

        public final void setMhtFormatOptions(int value)

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

      • getPreserveOriginalBoundaries

        public final boolean getPreserveOriginalBoundaries()

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

      • setPreserveOriginalBoundaries

        public final void setPreserveOriginalBoundaries(boolean value)

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

      • getCheckBodyContentEncoding

        public final boolean getCheckBodyContentEncoding()

        Defines whether need check message body content encoding when saving.

      • setCheckBodyContentEncoding

        public final void setCheckBodyContentEncoding(boolean value)

        Defines whether need check message body content encoding when saving.

      • getSaveAttachments

        public final boolean getSaveAttachments()

        Gets or sets a value indicating whether to save attachments.

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

        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.
      • getPreserveOriginalDate

        public final boolean getPreserveOriginalDate()

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

      • setPreserveOriginalDate

        public final void setPreserveOriginalDate(boolean value)

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

      • getSkipInlineImages

        public final boolean getSkipInlineImages()

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

      • setSkipInlineImages

        public final void setSkipInlineImages(boolean value)

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