HTMLBody Property

HTMLBody Property

See Also         Example         Applies To

Sets the HTML body of the item. The HTMLBody property should be an HTML syntax string.

Setting the HTMLBody property sets the EditorType property of the item's Inspector to olEditorHTML(2).

Setting the HTMLBody property will always update the Body property immediately.

Setting the Body property will clear the contents of the HTMLBody property on HTML aware stores (Internet Only Mode).

Note The EditorType property is not affected when you merely access the Body property of the item (as in MsgBox myItem.Body), but when you reset the Body property (as in myItem.Body = "This is a new body"), the EditorType reverts back to the user's default editor.

Read/write String.

Syntax

object.HTMLBody

object   Required. An expression that returns a PostItem or MailItem object.