property Message.BodyText as String

Retrieves or sets the message's body as plain text.

TypeDescription
String A String expression that indicates the message's body.

Use the BodyText to set the message's body. Use the BodyHTML to send your email message in HTML format. You can set also the email message's body by setting the Message optional parameter of the Send method. Use the BodyEncoding property to specify the encoding type of the message's body.

The following samples show how to set the message's text:

Dim m As Message
Set m = Runtime1.NewMessage
m.BodyText = "Hello world!"
If (0 = m.Send("myaccount@usermail.com", "bul@bulstone.com", "Test")) Then
    MsgBox "The message was successfully delivered "
End If
Dim m As Message
Set m = Runtime1.NewMessage
If (0 = m.Send("myaccount@usermail.com", "bul@bulstone.com", "Test", "Hello world!")) Then
    MsgBox "The message was successfully delivered "
End If