MessageBody Property
Previous  Top  Next


MessageBody property specifies main body of e-mail message.

Syntax

[Visual Basic]


objMailMessage.MessageBody = "Testing, testing, testing..."

[VBScript]


objMailMessage.MessageBody = "Testing, testing, testing..."

[C#]


objMailMessage.MessageBody = "Testing, testing, testing...";

[C++]


HRESULT get_MessageBody(BSTR*);
HRESULT put_MessageBody(BSTR);

spMailMessage->PutMessageBody("Testing, testing, testing...");


Remarks

MessageBody can contain plain text or HTML depending on the value of MessageBodyFormat property. Default value of MessageBody property is an empty string. The message will have no body if MessageBody property contains an empty string.