Class HeadersFormattingOptions
Contents
[
Hide
]HeadersFormattingOptions class
Serves as the abstract base class for format-specific options when saving MailMessage to HTML-based formats (MHTML, HTML). This class provides configuration properties for controlling header formatting, CSS styles, timeout settings, and resource rendering behavior.
public abstract class HeadersFormattingOptions : SaveOptions
Constructors
| Name | Description |
|---|---|
| HeadersFormattingOptions() | Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format. |
Properties
| Name | Description |
|---|---|
| AfterHeadersFormat { get; set; } | After headers format. |
| BeforeHeadersFormat { get; set; } | Before headers format. |
| 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. |
| ExtractHTMLBodyResourcesAsAttachments { get; set; } | Defines whether extract HTML body resources as attachments or not. Default value is false. |
| FormatTemplates { get; } | Gets the format templates. |
| 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. |
| Timeout { get; set; } | Limits the time in milliseconds of formatting message while saving in Mht. Default value 3 sec. |
Events
| Name | Description |
|---|---|
| event ResourceHtmlRendering | Provides customization of rendering resources in html. |
| event TimeoutReached | Raised if timed out while saving to Mhtml. |
Remarks
This class is designed to be inherited by concrete format-specific classes like HtmlSaveOptions and MhtSaveOptions. Do not instantiate this class directly. Use the format-specific subclasses to access format-specific saving options. The class provides extensive customization for email header presentation, CSS styling, and resource extraction behavior.
See Also
- class SaveOptions
- namespace Aspose.Email
- assembly Aspose.Email