Class MhtmlLoadOptions
Contents
[
Hide
]MhtmlLoadOptions class
Provides options for controlling how MailMessage instances are loaded from MHTML format. This class allows you to customize the loading behavior for MHTML (MIME HTML) files, particularly for handling TNEF attachments that may be embedded in the message.
public class MhtmlLoadOptions : LoadOptions
Constructors
| Name | Description |
|---|---|
| MhtmlLoadOptions() | Initializes a new instance of the MhtmlLoadOptions class with the default options. |
Properties
| Name | Description |
|---|---|
| MessageFormat { get; } | Gets the format this options object loads, as determined by its class: EML, MSG, MHTML, HTML and so on. |
| PreferredTextEncoding { get; set; } | Gets or sets the encoding used for the subject and the body regardless of what the message declares. The default is null: the declared encoding is used. |
| PreserveEmbeddedMessageFormat { get; set; } | Gets or sets a value indicating whether embedded messages keep their original format (EML or MSG) when loaded. The default is false. |
| PreserveTnefAttachments { get; set; } | Gets or sets a value indicating whether a TNEF attachment (winmail.dat) is kept as it is instead of being decoded into its files. The default is false. |
| RemoveSignature { get; set; } | Gets or sets a value indicating whether the digital signature is removed from a signed message while it is loaded. |
Remarks
Use this class with Load to load MHTML files and control TNEF attachment handling. MHTML is a web page archive format that combines HTML content and embedded resources into a single file. The PreserveTnefAttachments property controls whether TNEF attachments (winmail.dat) are decoded or preserved as-is.
See Also
- class LoadOptions
- namespace Aspose.Email
- assembly Aspose.Email