Help Center

CDOMessage.HTMLBodymethod

The Hypertext Markup Language (HTML) representation of the message.

COMmethodCDOMessage.incdocumented

Syntax

FUNCTION HTMLBody (BYREF wszTextBody AS WSTRING) AS HRESULT

Parameters

NameDescription
wszHTMLBodyThe default value of the HTMLBody property is an empty string.

Return value

S_OK (0) or an HRESULT code.

Description

The Hypertext Markup Language (HTML) representation of the message.

Example

DIM dwsHTML AS DWSTRING dwsHTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & $LF dwsHTML += "<HTML>" dwsHTML += " <HEAD>" dwsHTML += " <TITLE>Sample GIF</TITLE>" dwsHTML += " </HEAD>" dwsHTML += " <BODY><P>" dwsHTML += " <IMG src=""XYZ.gif""></p><p>Inline graphics</P>" dwsHTML += " </BODY>" dwsHTML += "</HTML>" pMsg.HtmlBody(dwsHTML)

Reference

  • Include file CDOMessage.inc
  • Defined in AfxNova/CDOMessage.inc:300
  • Documented in COM/CDOMessage Class.md
  • Topic: CDOMessage Class