public class MhtSaveOptions extends SaveOptions
Allows to specify additional options when saving MailMessage to Mhtml format.
Constructor and Description |
---|
MhtSaveOptions()
Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCheckBodyContentEncoding()
Defines whether need check message body content encoding when saving.
|
String |
getCssStyles()
Gets or sets the additional css styles for the formatter.
|
com.aspose.ms.System.Collections.Specialized.StringDictionary |
getFormatTemplates()
Gets the format templates.
|
MhtMessageFormatter |
getFormatter()
Deprecated.
|
int |
getMhtFormatOptions()
Defines additional options when saving in MHTML format.
|
boolean |
getPreserveOriginalBoundaries()
Defines whether need keep original boundaries in mail message when saving or not.
|
boolean |
getPreserveOriginalDate()
Defines whether need keep original date in mail message when saving or not.
|
int |
getRenderedContactFields()
Defines groups of Contact fields which will be included in output mhtml.
|
boolean |
getSaveAttachments()
Gets or sets a value indicating whether to save attachments.
|
void |
setCheckBodyContentEncoding(boolean value)
Defines whether need check message body content encoding when saving.
|
void |
setCssStyles(String value)
Gets or sets the additional css styles for the formatter.
|
void |
setFormatter(MhtMessageFormatter value)
Deprecated.
|
void |
setMhtFormatOptions(int value)
Defines additional options when saving in MHTML format.
|
void |
setPreserveOriginalBoundaries(boolean value)
Defines whether need keep original boundaries in mail message when saving or not.
|
void |
setPreserveOriginalDate(boolean value)
Defines whether need keep original date in mail message when saving or not.
|
void |
setRenderedContactFields(int value)
Defines groups of Contact fields which will be included in output mhtml.
|
void |
setSaveAttachments(boolean value)
Gets or sets a value indicating whether to save attachments.
|
createSaveOptions, getDefaultEml, getDefaultHtml, getDefaultMhtml, getDefaultMsg, getDefaultMsgUnicode, getMailMessageSaveType, setMailMessageSaveType
public MhtSaveOptions()
Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.
public int getRenderedContactFields()
Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.
public void setRenderedContactFields(int value)
Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.
public int getMhtFormatOptions()
Defines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader | MhtFormatOptions.WriteOutlineAttachments.
public void setMhtFormatOptions(int value)
Defines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader | MhtFormatOptions.WriteOutlineAttachments.
public boolean getPreserveOriginalBoundaries()
Defines whether need keep original boundaries in mail message when saving or not.
public void setPreserveOriginalBoundaries(boolean value)
Defines whether need keep original boundaries in mail message when saving or not.
public boolean getCheckBodyContentEncoding()
Defines whether need check message body content encoding when saving.
public void setCheckBodyContentEncoding(boolean value)
Defines whether need check message body content encoding when saving.
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
.public boolean getPreserveOriginalDate()
Defines whether need keep original date in mail message when saving or not. Default value is true.
public void setPreserveOriginalDate(boolean value)
Defines whether need keep original date in mail message when saving or not. Default value is true.
public String getCssStyles()
Gets or sets the additional css styles for the formatter.
Value: The styles to be injected into resulting html body.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.public com.aspose.ms.System.Collections.Specialized.StringDictionary getFormatTemplates()
Gets the format templates.
Value: The format templates.@Deprecated public MhtMessageFormatter getFormatter()
Defines formatter for Mht conversion.
@Deprecated public void setFormatter(MhtMessageFormatter value)
Defines formatter for Mht conversion.
Copyright (c) 2008-2017 Aspose Pty Ltd. All Rights Reserved.