public class MhtMessageFormatter extends Object implements IMessageFormatter
Provides a default formatter for Mht conversion.
Constructor and Description |
---|
MhtMessageFormatter()
Creates an instance of MhtMessageFormatter.
|
Modifier and Type | Method and Description |
---|---|
void |
format(MailMessage message)
Adds information header into message body.
|
void |
format(MailMessage message,
boolean writeCompleteEmailAddress)
Deprecated.
|
void |
format(MailMessage message,
int formatOptions)
Adds information header into message body.
|
String |
getAttachmentFormat()
Gets or sets the attachment format.
|
String |
getBccFormat()
Gets or sets the bcc format.
|
String |
getCcFormat()
Gets or sets the cc format.
|
String |
getCssStyles()
Gets or sets the additional css styles for the formatter.
|
String |
getDateTimeFormat()
Gets or sets the date time format.
|
static int |
getDefaultMhtFormatOptions()
MhtFormatOptions that will be used for formatting by default.
|
com.aspose.ms.System.Collections.Specialized.StringDictionary |
getFormatTemplates()
Gets the format templates.
|
String |
getFromFormat()
Gets or sets format of the XVHK4D9KDb.get(new byte[] { (byte)0x57, (byte)0xea, (byte)0xdf, (byte)0xca }) field.
|
String |
getImportanceFormat()
Gets or sets the importance format.
|
String |
getLocationFormat()
Gets or sets the Location format.
|
String |
getPageHeaderFormat()
Gets or sets the page header format.
|
boolean |
getSaveAttachments()
Gets or sets a value indicating whether to save attachments.
|
String |
getSentFormat()
Gets or sets the sent format.
|
String |
getSubjectFormat()
Gets or sets the subject format.
|
String |
getToFormat()
Gets or sets to format.
|
String |
getWhenFormat()
Gets or sets the When format.
|
void |
setAttachmentFormat(String value)
Gets or sets the attachment format.
|
void |
setBccFormat(String value)
Gets or sets the bcc format.
|
void |
setCcFormat(String value)
Gets or sets the cc format.
|
void |
setCssStyles(String value)
Gets or sets the additional css styles for the formatter.
|
void |
setDateTimeFormat(String value)
Gets or sets the date time format.
|
void |
setFromFormat(String value)
Gets or sets format of the XVHK4D9KDb.get(new byte[] { (byte)0x57, (byte)0xea, (byte)0xdf, (byte)0xca }) field.
|
void |
setImportanceFormat(String value)
Gets or sets the importance format.
|
void |
setLocationFormat(String value)
Gets or sets the Location format.
|
void |
setPageHeaderFormat(String value)
Gets or sets the page header format.
|
void |
setSaveAttachments(boolean value)
Gets or sets a value indicating whether to save attachments.
|
void |
setSentFormat(String value)
Gets or sets the sent format.
|
void |
setSubjectFormat(String value)
Gets or sets the subject format.
|
void |
setToFormat(String value)
Gets or sets to format.
|
void |
setWhenFormat(String value)
Gets or sets the When format.
|
public MhtMessageFormatter()
Creates an instance of MhtMessageFormatter.
public boolean getSaveAttachments()
Gets or sets a value indicating whether to save attachments.
Value:true
if attachments should be saved; otherwise, false
.public void setSaveAttachments(boolean value)
Gets or sets a value indicating whether to save attachments.
Value:true
if attachments should be saved; otherwise, false
.value
- a boolean.public String getLocationFormat()
Gets or sets the Location format.
Value: The Location format.String
object.public void setLocationFormat(String value)
Gets or sets the Location format.
Value: The Location format.value
- a String
object.public String getWhenFormat()
Gets or sets the When format.
Value: The When format.String
object.public void setWhenFormat(String value)
Gets or sets the When format.
Value: The When format.value
- a String
object.public String getDateTimeFormat()
Gets or sets the date time format.
Value: The date time format.String
object.public void setDateTimeFormat(String value)
Gets or sets the date time format.
Value: The date time format.value
- a String
object.public String getPageHeaderFormat()
Gets or sets the page header format.
Value: The page header format.String
object.public void setPageHeaderFormat(String value)
Gets or sets the page header format.
Value: The page header format.value
- a String
object.public String getFromFormat()
Gets or sets format of the XVHK4D9KDb.get(new byte[] { (byte)0x57, (byte)0xea, (byte)0xdf, (byte)0xca }) field.
Value: Format of the XVHK4D9KDb.get(new byte[] { (byte)0x57, (byte)0xea, (byte)0xdf, (byte)0xca }) field.String
object.public void setFromFormat(String value)
Gets or sets format of the XVHK4D9KDb.get(new byte[] { (byte)0x57, (byte)0xea, (byte)0xdf, (byte)0xca }) field.
Value: Format of the XVHK4D9KDb.get(new byte[] { (byte)0x57, (byte)0xea, (byte)0xdf, (byte)0xca }) field.value
- a String
object.public String getSentFormat()
Gets or sets the sent format.
Value: The sent format.String
object.public void setSentFormat(String value)
Gets or sets the sent format.
Value: The sent format.value
- a String
object.public String getToFormat()
Gets or sets to format.
Value: To format.String
object.public void setToFormat(String value)
Gets or sets to format.
Value: To format.value
- a String
object.public String getCcFormat()
Gets or sets the cc format.
Value: The cc format.String
object.public void setCcFormat(String value)
Gets or sets the cc format.
Value: The cc format.value
- a String
object.public String getSubjectFormat()
Gets or sets the subject format.
Value: The subject format.String
object.public void setSubjectFormat(String value)
Gets or sets the subject format.
Value: The subject format.value
- a String
object.public String getAttachmentFormat()
Gets or sets the attachment format.
Value: The attachment format.String
object.public void setAttachmentFormat(String value)
Gets or sets the attachment format.
Value: The attachment format.value
- a String
object.public String getBccFormat()
Gets or sets the bcc format.
Value: The bcc format.String
object.public void setBccFormat(String value)
Gets or sets the bcc format.
Value: The bcc format.value
- a String
object.public String getCssStyles()
Gets or sets the additional css styles for the formatter.
Value: The styles to be injected into resulting html body.String
object.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.value
- a String
object.public String getImportanceFormat()
Gets or sets the importance format.
Value: The importance format.String
object.public void setImportanceFormat(String value)
Gets or sets the importance format.
Value: The importance format.value
- a String
object.public static int getDefaultMhtFormatOptions()
MhtFormatOptions that will be used for formatting by default.
public com.aspose.ms.System.Collections.Specialized.StringDictionary getFormatTemplates()
Gets the format templates.
Value: The format templates.getFormatTemplates
in interface IMessageFormatter
StringDictionary
object.public void format(MailMessage message)
Adds information header into message body.
format
in interface IMessageFormatter
message
- The MailMessage to be formatted.@Deprecated public void format(MailMessage message, boolean writeCompleteEmailAddress)
Adds information header into message body.
message
- The MailMessage to be formatted.writeCompleteEmailAddress
- if set to true
[write complete email address].public void format(MailMessage message, int formatOptions)
Adds information header into message body.
message
- The MailMessage to be formatted.formatOptions
- Options for formattingAspose.Email.Mail.MhtFormatOptions
.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.