MailMessageBodyHtmlText Property
Gets or sets the HTML body of the message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public string BodyHtmlText { get; set; }

Property Value

Type: String
A string containing the HTML body of the message, or an empty string if the message does not have an HTML body.
If the mail message doesn't contain HTML-formatted body and it's desired to get it from plain text, you should set MailMessage.Parser.PlainToHtmlMode to IfNoHtml value. MailBee will generate HTML body automatically and you can then get it from BodyHtmlText property as usually.
Note Note
MailMessage.Parser.PlainToHtmlMode should be set before any property of MailMessage object gets accessed and the message gets parsed. If message was already parsed, you will have to call MailMessage.Parser.Apply method to reparse it.
The example is available in MailMessage topic.
See Also