QueueMailInWork

This function puts a message in the WebHare mail queue in the current work, and send it to the standard mail server

Syntax

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

INTEGER ARRAY FUNCTION QueueMailInWork(STRING origin, STRING ARRAY receivers, STRING sender, RECORD ARRAY mimeheaders, RECORD toppart, RECORD options)

Parameters

STRING origin

Originating module

STRING ARRAY receivers

Array of email addresses of the receivers (all To, Cc and Bcc recipients)

STRING sender

Email address of the sender

RECORD ARRAY mimeheaders

Headers to send with the message (including From, To, etc headers, but without any Bcc headers)

RECORD toppart

Top-level part of the MIME message to send

RECORD options

Options

rawheaders

No postprocessing of headers like To, Subject

statuscallback

Callback function to invoke when receiving status updates for this mail (eg bounce, delivery, complaint)

statusdata

Informational string passed to the status callback

Return value

INTEGER ARRAY

IDs of the generated task, one per receiver