API Reference
Class
EmailHtmlExporter
Creates safe local HTML copies, saving embedded images without downloading remote resources.
Inheritance
- Object
- EmailHtmlExporter
Remarks
The caller selects the output path. Copies retain the body, sender and To recipients; HTML sanitization does not anonymize message content.
Methods
Export 2 overloads
public static EmailHtmlExportResult Export(EmailMessage message, String path, Boolean includeAttachments = false, Boolean overwrite = false, CancellationToken cancellationToken = default) #Returns:
EmailHtmlExportResultExports a handle-free message with an operation-scoped full read.
Parameters
- message OfficeIMO.Email.EmailMessage
- path System.String
- includeAttachments System.Boolean = false
- overwrite System.Boolean = false
- cancellationToken System.Threading.CancellationToken = default
public static EmailHtmlExportResult Export(EmailDocument document, String path, Boolean includeAttachments = false, Boolean overwrite = false, CancellationToken cancellationToken = default) #Returns:
EmailHtmlExportResultExports sanitized HTML and embedded resources. Earlier resource files survive later failures.
Parameters
- document OfficeIMO.Email.EmailDocument
- path System.String
- includeAttachments System.Boolean = false
- overwrite System.Boolean = false
- cancellationToken System.Threading.CancellationToken = default