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 int getRenderedContactFields()

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

      • setRenderedContactFields

        public void setRenderedContactFields(int value)

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

      • getMhtFormatOptions

        public int getMhtFormatOptions()

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

      • setMhtFormatOptions

        public void setMhtFormatOptions(int value)

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

      • getPreserveOriginalBoundaries

        public boolean getPreserveOriginalBoundaries()

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

      • setPreserveOriginalBoundaries

        public void setPreserveOriginalBoundaries(boolean value)

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

      • getCheckBodyContentEncoding

        public boolean getCheckBodyContentEncoding()

        Defines whether need check message body content encoding when saving.

      • setCheckBodyContentEncoding

        public void setCheckBodyContentEncoding(boolean value)

        Defines whether need check message body content encoding when saving.

      • getSaveAttachments

        public boolean getSaveAttachments()

        Gets or sets a value indicating whether to save attachments.

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

        public 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 boolean getPreserveOriginalDate()

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

      • setPreserveOriginalDate

        public void setPreserveOriginalDate(boolean value)

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

      • getCssStyles

        public String getCssStyles()

        Gets or sets the additional css styles for the formatter.

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

        public 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 com.aspose.ms.System.Collections.Specialized.StringDictionary getFormatTemplates()

        Gets the format templates.

        Value: The format templates.
      • getSkipInlineImages

        public boolean getSkipInlineImages()

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

      • setSkipInlineImages

        public void setSkipInlineImages(boolean value)

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