PrepareMailWitty (open)
Set up a witty for mailing
Syntax
LOADLIB "mod::system/lib/mailer.whlib";
OBJECT FUNCTION PrepareMailWitty(STRING mailwitty, RECORD options)Parameters
STRING mailwittyMail witty to use, optionally append a ":component" to use a specific component
RECORD optionsOptions
STRING mailtemplatePath to optional mailtemplate to use. Should contain <slot name="mailbody"></slot> for the mail insertion point`
OBJECT mergecontextMerge 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 webcontextWebcontext (or webdesign) to use to resolve plugins that can supply mergerecord extensions.