QueueSimpleMail (open)
Simple mail send function
Syntax
LOADLIB "mod::system/lib/mailer.whlib";
BOOLEAN FUNCTION QueueSimpleMail(STRING origin, STRING mailfrom, STRING ARRAY mailto, STRING ARRAY mailcc, STRING ARRAY mailbcc, STRING subject, STRING messagetext, RECORD ARRAY attachments, BOOLEAN text_is_html)Parameters
STRING originOriginating module
STRING mailfromThe e-mail address of the message sender
STRING ARRAY mailtoA string array of recipients to put in the To header
STRING ARRAY mailccA string array of recipients to put in the Cc header
STRING ARRAY mailbccA string array of recipients which will not be mentioned in the header
STRING subjectThe message subject
STRING messagetextThe message raw text (separating individual lines with \r\n is recommended)
RECORD ARRAY attachmentsRecord array of attachments of (name, contenttype, data)
BOOLEAN text_is_htmlTrue if the text we're sending should be interpreted as HTML mail (a plain text alternative will be generated)
Return value
BOOLEANfalse if queueing failed (either database server unreachable or an i/o error in database)