com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class SaveOptions

    • Constructor Detail

      • SaveOptions

        protected SaveOptions()

        Hides the class constructor.

    • Method Detail

      • getMailMessageSaveType

        public MailMessageSaveType getMailMessageSaveType()

        Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format. The default value is Eml.

        Returns:
        a MailMessageSaveType object.
      • setMailMessageSaveType

        public void setMailMessageSaveType(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.

        Parameters:
        value - a MailMessageSaveType object.
      • getDefaultEml

        public static EmlSaveOptions getDefaultEml()

        Gets options with default values for saving message to Eml format.

        Returns:
        a EmlSaveOptions object.
      • getDefaultMsg

        public static MsgSaveOptions getDefaultMsg()

        Gets options with default values for saving message to Msg(ASCII) format.

        Returns:
        a MsgSaveOptions object.
      • getDefaultMsgUnicode

        public static MsgSaveOptions getDefaultMsgUnicode()

        Gets options with default values for saving message to Msg(Unicode) format.

        Returns:
        a MsgSaveOptions object.
      • getDefaultMhtml

        public static MhtSaveOptions getDefaultMhtml()

        Gets options with default values for saving message to Mhtml format.

        Returns:
        a MhtSaveOptions object.
      • getDefaultHtml

        public static HtmlSaveOptions getDefaultHtml()

        Gets options with default values for saving message to Html format.

        Returns:
        a HtmlSaveOptions object.
      • createSaveOptions

        public static SaveOptions createSaveOptions(MailMessageSaveType saveType)

        Creates a save options object of a class suitable for the specified save type.

        Parameters:
        saveType - The MailMessageSaveTypesave type for which to create a save options object.
        Returns:
        An object of a class that derives from SaveOptions.