WittyMailComposer (open)
Email composer returned by PrepareMailWitty
Syntax
LOADLIB "mod::system/lib/mailer.whlib";
OBJECTTYPE WittyMailComposer
Variables
- STRING errorsto
Error-To address that should receive any bounce messages. Falls back to the mailform if not set.
- RECORD ARRAY headers
Additional mail headers
- STRING mailfrom
Mail sender. If not set it will use the
wh-mailcomposer-from
META tag and if that's unset, the server's default sender address - STRING mailsendername
Sender name to use. If set, this overwrite the name part of the mailfrom
- RECORD mergerecord
Merge data for the witty
- STRING origin
Origin to locate this mail in the mailqueue. Defaults to the witty path
- MACRO PTR postrestructurehook
Hook that is invoked by mail generators (ExportAsEML, QueueMailInWork) after any mail-restructuring takes place
- MACRO PTR prerestructurehook
Hook that is invoked by mail generators (ExportAsEML, QueueMailInWork) before any mail-restructuring takes place
- STRING replyto
Reply-To to use. Replies will go to this email address
- BOOLEAN restructure
- STRING subject
Mail subject. If not set it will be extraced from the
<title>
of the mail message - STRING wittyencoding
Witty encoding to use for reading the mail template. Defaults to "HTML"
Properties
- PROPERTY attachments
Attachments added to the mail
- PROPERTY mailbcc
- PROPERTY mailcc
- PROPERTY mailtemplatepath
- PROPERTY mailto
Mail recipients.
- PROPERTY mergerecordextensions
Extensions for the merge record supplied by webcontext plugins (see WebDesignPluginBase::HookPrepareMail)
Functions
- MACRO AddAlternative(BLOB attachment, RECORD options)
Add an alternative to the mailing (eg ICS attachment)
- MACRO AddAttachment(BLOB attachment, RECORD options)
Add an attachment to the mailing.
- STRING FUNCTION AddEmbeddedObject(BLOB asset, RECORD options)
- MACRO AddResourceAsAttachment(STRING resourcepath, RECORD options)
Add an attachment relative to the mailing we uplodaded
- MACRO AddWrappedAlternative(RECORD wrappedblob)
Add a wrapped blob to the mailing as an alternative
- MACRO AddWrappedAttachment(RECORD wrappedblob)
Add a wrapped blob to the mailing
- RECORD FUNCTION CreateMailing()
- BLOB FUNCTION ExportAsEML()
Render the email and export as an EML document
- STRING ARRAY FUNCTION GetEventMasks()
- MACRO PTR FUNCTION GetRTDBody(RECORD richdoc, RECORD options)
Get a renderer for embedding a RTD into a mail, with support for images and raw HTML objects
- INTEGER ARRAY FUNCTION QueueMailInWork(RECORD options)
Queue the mail into the current work
- MACRO RenderRTD(RECORD rtdtext, RECORD options)
Print a RTD for embedding into a mail, with support for images and raw HTML objects