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 origin

Originating module

STRING mailfrom

The e-mail address of the message sender

STRING ARRAY mailto

A string array of recipients to put in the To header

STRING ARRAY mailcc

A string array of recipients to put in the Cc header

STRING ARRAY mailbcc

A string array of recipients which will not be mentioned in the header

STRING subject

The message subject

STRING messagetext

The message raw text (separating individual lines with \r\n is recommended)

RECORD ARRAY attachments

Record array of attachments of (name, contenttype, data)

BOOLEAN text_is_html

True if the text we're sending should be interpreted as HTML mail (a plain text alternative will be generated)

Return value

BOOLEAN

false if queueing failed (either database server unreachable or an i/o error in database)