Class HtmlSaveOptions

HtmlSaveOptions class

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

public class HtmlSaveOptions : HeadersFormattingOptions

Constructors

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

Properties

NameDescription
AfterHeadersFormat { get; set; }After headers format.
BeforeHeadersFormat { get; set; }Before headers format.
CheckBodyContentEncoding { get; set; }Defines whether need check message body content encoding when saving. By default the value is false.
CssStyles { get; set; }Gets or sets the additional css styles for the formatter.
CustomProgressHandler { get; set; }Represents method that usually supplied by calling side and handles progress events.
DefaultHeaderFormat { get; set; }Default header line format.
DefaultPageHeaderFormat { get; set; }Default page header format.
FormatTemplates { get; }Gets the format templates.
HtmlFormatOptions { get; set; }Gets or sets additional options when saving in HTML format. Default value is HtmlFormatOptions.None.
MailMessageSaveType { get; set; }Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format. The default value is Eml.
RenderedContactFields { get; set; }Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.
RenderingHeaders { get; }Gets list of headers for rendering.
ResourceRenderingMode { get; set; }Provides set various modes of rendering resources in html. Default value EmbedIntoHtml.
UseRelativePathToResources { get; set; }Default value is false.

Events

NameDescription
event ResourceHtmlRenderingProvides customization of rendering resources in html.

See Also