WittyMailComposer::RenderRTD (open)

Print a RTD for embedding into a mail, with support for images and raw HTML objects

Syntax

LOADLIB "mod::system/lib/mailer.whlib";

MACRO RenderRTD(RECORD rtdtext, RECORD options)

Parameters

RECORD rtdtext

Rich document to embed

RECORD options

Options

MACRO PTR htmlpostprocessor

Callback which will receive a DOM to rewrite after the rest of the RTD has been prepared but before rendered widgets are merged back into the content

BOOLEAN rawwittytags

Interpret and merge any witty tags found anywhere in HTML, inside embedhtml and content, accepting potential crashes

BOOLEAN wittyhyperlinks

Support witty tags in hyperlinks if they're prefixed with x-witty: