Body Property (CDONTS NewMail Object)

The Body property sets the text of the NewMail object. Write-only.

Syntax

objNewMail.Body 
 

Data Type

Object (IStream) or String

Remarks

The Body property can contain either plain text or HTML. The BodyFormat property should be set to indicate whether or not the Body property includes any HTML.

Only C/C++ and Java programs can use an IStream object for this property. They should pass an IUnknown object that returns an IStream interface in response to QueryInterface. Microsoft® Visual Basic® supports the IDispatch interface and not IUnknown, so it cannot use an IStream object.