PrepareMailWitty

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`

Return value

OBJECT
Possible objecttypes:

A composable mail