Share via


SPEmailMessage.HtmlBody Property

Gets the body of the e-mail message in HTML format.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property HtmlBody As String
    Get
'Usage
Dim instance As SPEmailMessage
Dim value As String

value = instance.HtmlBody
public string HtmlBody { get; }

Property Value

Type: System.String
A string that contains the HTML-formatted body of the message.

Remarks

For a message that contains only plain text, the HtmlBody property returns an HTML-encoded version of the plain-text body.

See Also

Reference

SPEmailMessage Class

SPEmailMessage Members

Microsoft.SharePoint.Utilities Namespace