com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MhtSaveOptions



  • public class MhtSaveOptions
    extends SaveOptions

    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

      • getRenderedContactFields

        public final int getRenderedContactFields()

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

      • setRenderedContactFields

        public final void setRenderedContactFields(int value)

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

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

      • getCssStyles

        public final String getCssStyles()

        Gets or sets the additional css styles for the formatter.

        Value: The styles to be injected into resulting html body.
      • setCssStyles

        public final void setCssStyles(String value)

        Gets or sets the additional css styles for the formatter.

        Value: The styles to be injected into resulting html body.
      • getFormatTemplates

        public final com.aspose.ms.System.Collections.Specialized.StringDictionary getFormatTemplates()

        Gets the format templates.

        Value: The format templates.
      • getRenderingHeaders

        public final List<String> getRenderingHeaders()

        Gets list of headers for rendering.

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