com.aspose.email

com.aspose.email

Class MhtMessageFormatter

public class MhtMessageFormatter
extends Object

Provides a default formatter for Mht conversion.

Constructor Summary
MhtMessageFormatter()
Creates an instance of MhtMessageFormatter.
 
Method Summary
void
format(MailMessage message)
Adds information header into message body.
getAttachmentFormat()
Gets or sets the attachment format.
getBccFormat()
Gets or sets the bcc format.
getCcFormat()
Gets or sets the cc format.
getCssStyles()
Gets or sets the additional css styles for the formatter.
getDateTimeFormat()
Gets or sets the date time format.
getFormatTemplates()
Gets the format templates.
getFormFormat()
Deprecated. 
getFromFormat()
Gets or sets format of the "From" field.
getImportanceFormat()
Gets or sets the importance format.
getPageHeaderFormat()
Gets or sets the page header format.
boolean
getSaveAttachments()
Gets or sets a value indicating whether to save attachments.
getSentFormat()
Gets or sets the sent format.
getSubjectFormat()
Gets or sets the subject format.
getToFormat()
Gets or sets to format.
void
void
void
void
void
void
setFormFormat(String value)
Deprecated. 
void
void
void
void
setSaveAttachments(booleanvalue)
void
void
void
 
Methods inherited from class java.lang.Object
 

    • Constructor Detail

      • MhtMessageFormatter

        public MhtMessageFormatter()

        Creates an instance of MhtMessageFormatter.

    • Method Detail

      • 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)
      • getDateTimeFormat

        public String getDateTimeFormat()

        Gets or sets the date time format.

        Value: The date time format.

      • setDateTimeFormat

        public void setDateTimeFormat(String value)
      • getPageHeaderFormat

        public String getPageHeaderFormat()

        Gets or sets the page header format.

        Value: The page header format.

      • setPageHeaderFormat

        public void setPageHeaderFormat(String value)
      • getFormFormat

        @Deprecated
        public String getFormFormat()
        Deprecated. 

        Gets or sets the from format.

        Value: The from format.

      • getFromFormat

        public String getFromFormat()

        Gets or sets format of the "From" field.

        Value: Format of the "From" field.

      • setFromFormat

        public void setFromFormat(String value)
      • getSentFormat

        public String getSentFormat()

        Gets or sets the sent format.

        Value: The sent format.

      • setSentFormat

        public void setSentFormat(String value)
      • getToFormat

        public String getToFormat()

        Gets or sets to format.

        Value: To format.

      • setToFormat

        public void setToFormat(String value)
      • getCcFormat

        public String getCcFormat()

        Gets or sets the cc format.

        Value: The cc format.

      • setCcFormat

        public void setCcFormat(String value)
      • getSubjectFormat

        public String getSubjectFormat()

        Gets or sets the subject format.

        Value: The subject format.

      • setSubjectFormat

        public void setSubjectFormat(String value)
      • getAttachmentFormat

        public String getAttachmentFormat()

        Gets or sets the attachment format.

        Value: The attachment format.

      • setAttachmentFormat

        public void setAttachmentFormat(String value)
      • getBccFormat

        public String getBccFormat()

        Gets or sets the bcc format.

        Value: The bcc format.

      • setBccFormat

        public void setBccFormat(String value)
      • 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)
      • getImportanceFormat

        public String getImportanceFormat()

        Gets or sets the importance format.

        Value: The importance format.

      • setImportanceFormat

        public void setImportanceFormat(String value)
      • getFormatTemplates

        public HashMap<String,String> getFormatTemplates()

        Gets the format templates.

        Value: The format templates.

      • format

        public void format(MailMessage message)

        Adds information header into message body.

        Parameters:
        message - The MailMessage to be formatted.