Share via


SysMailerNet.htmlBody Method [AX 2012]

Sets the body of the email message in an HTML format.

Syntax

public str htmlBody([str body])

Run On

Called

Parameters

  • body
    Type: str
    A string expression that contains HTML code that represents the body of the email message; optional.

Return Value

Type: str
The body of the email in HTML.

Remarks

The maximum size of the email message body is 10MB. If the size exceeds 10MB, the HTML body is set to an empty string, and a warning message is generated.

Corresponds to the "Body" System.Net.Mail.MailMessage mail header property

See Also

Reference

SysMailerNet Class