HtmlSaveOptions

Inheritance: java.lang.Object, com.aspose.email.SaveOptions, com.aspose.email.HeadersFormattingOptions

public class HtmlSaveOptions extends HeadersFormattingOptions

Allows to specify additional options when saving MailMessage to Html format.

Constructors

Constructor Description
HtmlSaveOptions() Initializes a new instance of this class that can be used to save a MailMessage in the Html format.

Methods

Method Description
getEmbedResources() Defines whether need embed resources in html content when saving or not.
setEmbedResources(boolean value) Defines whether need embed resources in html content when saving or not.
getHtmlFormatOptions() Gets or sets additional options when saving in HTML format.
setHtmlFormatOptions(int value) Gets or sets additional options when saving in HTML format.
getCheckBodyContentEncoding() Defines whether need check message body content encoding when saving.
setCheckBodyContentEncoding(boolean value) Defines whether need check message body content encoding when saving.
getSaveResourceHandler() This handler is called for saving all message attachments if EmbedResources is false.
setSaveResourceHandler(SaveResourceHandler value) This handler is called for saving all message attachments if EmbedResources is false.
getResourceHtmlRenderingHandler() Provides customization of rendering resources in html.
setResourceHtmlRenderingHandler(ResourceHtmlRenderingHandler value) Provides customization of rendering resources in html.
getResourceRenderingMode() Provides set various modes of rendering resources in html.
setResourceRenderingMode(int value) Provides set various modes of rendering resources in html.

HtmlSaveOptions()

public HtmlSaveOptions()

Initializes a new instance of this class that can be used to save a MailMessage in the Html format.

getEmbedResources()

public final boolean getEmbedResources()

Defines whether need embed resources in html content when saving or not. Default value is true.

Returns: boolean

setEmbedResources(boolean value)

public final void setEmbedResources(boolean value)

Defines whether need embed resources in html content when saving or not. Default value is true.

Parameters:

Parameter Type Description
value boolean

getHtmlFormatOptions()

public final int getHtmlFormatOptions()

Gets or sets additional options when saving in HTML format. Default value is HtmlFormatOptions.None.

Returns: int

setHtmlFormatOptions(int value)

public final void setHtmlFormatOptions(int value)

Gets or sets additional options when saving in HTML format. Default value is HtmlFormatOptions.None.

Parameters:

Parameter Type Description
value int

getCheckBodyContentEncoding()

public final boolean getCheckBodyContentEncoding()

Defines whether need check message body content encoding when saving.

Returns: boolean

setCheckBodyContentEncoding(boolean value)

public final void setCheckBodyContentEncoding(boolean value)

Defines whether need check message body content encoding when saving.

Parameters:

Parameter Type Description
value boolean

getSaveResourceHandler()

public final SaveResourceHandler getSaveResourceHandler()

This handler is called for saving all message attachments if EmbedResources is false.

Returns: SaveResourceHandler

setSaveResourceHandler(SaveResourceHandler value)

public final void setSaveResourceHandler(SaveResourceHandler value)

This handler is called for saving all message attachments if EmbedResources is false.

Parameters:

Parameter Type Description
value SaveResourceHandler

getResourceHtmlRenderingHandler()

public final ResourceHtmlRenderingHandler getResourceHtmlRenderingHandler()

Provides customization of rendering resources in html.

Returns: ResourceHtmlRenderingHandler

setResourceHtmlRenderingHandler(ResourceHtmlRenderingHandler value)

public final void setResourceHtmlRenderingHandler(ResourceHtmlRenderingHandler value)

Provides customization of rendering resources in html.

Parameters:

Parameter Type Description
value ResourceHtmlRenderingHandler

getResourceRenderingMode()

public final int getResourceRenderingMode()

Provides set various modes of rendering resources in html. Default value EmbedIntoHtml.

Returns: int

setResourceRenderingMode(int value)

public final void setResourceRenderingMode(int value)

Provides set various modes of rendering resources in html. Default value EmbedIntoHtml.

Parameters:

Parameter Type Description
value int