QueueMail (open)
This function puts a message in the WebHare mail queue, and send it to the standard mail server
Syntax
LOADLIB "mod::system/lib/mailer.whlib";
BOOLEAN FUNCTION QueueMail(STRING origin, STRING ARRAY receivers, STRING sender, RECORD ARRAY mimeheaders, RECORD toppart)
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
Return value
BOOLEAN
false if queueing failed (either database server unreachable or an i/o error in database)