PrepareMailWitty (open)
Set up a witty for mailing
Syntax
LOADLIB "mod::system/lib/mailer.whlib";
OBJECT FUNCTION PrepareMailWitty(STRING mailwitty, RECORD options)
Parameters
STRING mailwitty
Mail witty to use, optionally append a ":component" to use a specific component
RECORD options
Options
STRING mailtemplate
Path to optional mailtemplate to use. Should contain <slot name="mailbody"></slot>
for the mail insertion point`
OBJECT mergecontext
Merge fields context (TODO: specify further, also it does more than just mergefields, it's also a context to steer GetRTDBody in widgets the right way)
OBJECT webcontext
Webcontext (or webdesign) to use to resolve plugins that can supply mergerecord extensions.