Class TnefLoadOptions
Contents
[
Hide
]TnefLoadOptions class
Provides options for controlling how MailMessage instances are loaded from TNEF (Transport Neutral Encapsulation Format) format. This class is used primarily for handling Microsoft Outlook TNEF attachments (winmail.dat) that may contain rich text formatting and embedded objects.
public class TnefLoadOptions : LoadOptions
Constructors
| Name | Description |
|---|---|
| TnefLoadOptions() | Initializes a new instance of this class that can be used to loading a MailMessage from Tnef format. |
Properties
| Name | Description |
|---|---|
| MessageFormat { get; } | Represents the mail message format.It can be in eml,msg or mhtml format. The default value is Eml. |
| PreferredTextEncoding { get; set; } | Gets or sets preferred encoding for message. Forcibly sets the preferred encoding for message subject and body. The default value is null. |
| PreserveEmbeddedMessageFormat { get; set; } | Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading. By default the value is false. |
| RemoveSignature { get; set; } | Gets or sets a value indicating whether signature will be removed while loading. |
Remarks
Use this class with Load to load TNEF data. TNEF is a proprietary Microsoft format used by Outlook to encapsulate rich text messages and attachments. The TNEF format is typically encountered in winmail.dat attachments when emails are sent from Outlook to non-Outlook clients.
See Also
- class LoadOptions
- namespace Aspose.Email
- assembly Aspose.Email