TextBody Mail Property:
Gets or sets a string that is the text body.
Syntax:
[C++]
HRESULT get_TextBody(BSTR
*pVal);
HRESULT put_TextBody(BSTR newVal);
[VB]
Property TextBody
As String
Remark:
If both the
HtmlBody
and
TextBody properties are
set, the text body will be sent as an alternative content to the HTML
body.
Example:
[VB]
Dim oMail As New Mail
oMail.TextBody = "This is the text body." &
vbCrLf & "Good bye."
oMail.HtmlBody = "<html><body>This is the <b>html
body</b>.<br>Good bye.</body></html>
See also: