Gets or sets HTML version of the message body.
A string containing the message body as HTML.
This property is equivalent to BodyHtmlText property of Message object.
The developer can import HTML content (and, optionally, linked images, style-sheets, etc) from an HTML file or a web page using LoadBodyText method of Message object.
Specifying HTML body of the message.
[C#] // To use the code below, import MailBee namespaces at the top of your code. using MailBee; using MailBee.SmtpMail; using MailBee.Mime; // The actual code (put it into a method of your class) Smtp mailer = new Smtp(); // Specify HTML body using multi-line string constant. mailer.BodyHtmlText = @"<html> <head><title>Page title</title></head> <body>The text of the message. The next word is in <b>bold</b>.</body>; </html>";
[Visual Basic] ' To use the code below, import MailBee namespaces at the top of your code. Imports MailBee Imports MailBee.SmtpMail Imports MailBee.Mime ' The actual code (put it into a method of your class) Dim mailer As New Smtp ' Specify HTML body using multi-line string constant. mailer.BodyHtmlText = "<html>" & vbCrLf & _ "<head><title>Page title</title></head>" & vbCrLf & _ "<body>The text of the message. The next word is in <b>bold</b>.</body>" & vbCrLf & _ "</html>"
Smtp Class | MailBee.SmtpMail Namespace