EmailMessage.setHtmlBody

Sets the HTML body to the mail, which can support rich text, inline images (see addInlineImage), etc.

Automatically sets a text fallback if you haven't already, unless you pass false as the addFallback template value. Adding the fallback requires arsd.htmltotext.

class EmailMessage
void
setHtmlBody
(
bool addFallback = true
)
(
string html
)

Meta

History

The addFallback parameter was added on May 13, 2024.