property Message.BodyHTML as String

Retrieves or sets a the message's body in HTML format. The HTML content is attached as an alternative to BodyText text.

TypeDescription
String A String expression that indicates the HTML alternative for the BodyText property.

Use the BodyHTML property to send your message in HTML format. Use the BodyEncoding property to specify the encoding type of the message's body. If the property is empty, the email message is sent as plain text.

Here's a sample that shows you how to send an HTML message:

Dim m As Message
Set m = Runtime1.NewMessage
m.BodyHTML = "<html>Hello world</html>"
If (0 = m.Send("myaccount@usermail.com", "sss@colam.com", "HTML format", "Hello world")) Then
    MsgBox "The message was successfully delivered "
End If