email
email
cleanArguments()
Cleans and validates SEND arguments (struct argument is modified) and returns 'Success' if the email is ready to go, and the error if not.
Arguments
Name | Type | Required | Default | Options | Description |
mailArguments | struct | Yes | | | |
logEmail()
Log emails
Arguments
Name | Type | Required | Default | Options | Description |
message | string | Yes | | | |
send()
Arguments
Name | Type | Required | Default | Options | Description |
to | string | Yes | | | List of email address to send the email to |
bcc | string | No | | | List of email addresses to BCC to |
from | string | Yes | | | Address the email is from |
replyto | string | No | | | Reply address |
subject | string | Yes | | | Subject of email |
bodyPlain | string | No | | | Plain text version of email. |
bodyHTML | string | No | | | HTML version of email |
attachments | array | No | #arraynew(1)# | | Array of absolute path filenames, to be attached to the email |
attachment | string | No | | | If there is only one attachment, it can be attached with this argument |
rbkey | string | No | | | Resource key for translation |
variables | any | No | #arrayNew(1)# | | Resource translation variables |