MailBee.NET Objects 4.0

MessageParserConfig.AutoSaveHtmlMode Property

Gets or sets if (and how) the HTML body of the message should be saved to disk.

public HtmlMessageAutoSaving AutoSaveHtmlMode {get; set;}

Property Value

The method of saving the HTML body of the message to disk during parsing the message. The default value is NoAutoSave.

Remarks

This property makes it easier to get any HTML message as a file. You can also save the message as HTML file using SaveHtmlAndRelatedFiles method.

To make plain-text messages be saved as HTML files as well, you should also set PlainToHtmlMode property value to IfNoHtml.

Note   MessageParserConfig object cannot be used on its own. To access its members, the developer should use MailMessage.Parser property.

Example

The example is available in MessageParserConfig topic.

See Also

MessageParserConfig Class | MailBee.Mime Namespace | PlainToHtmlMode