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

NameTypeRequiredDefaultOptionsDescription
mailArgumentsstructYes

logEmail()

Log emails

Arguments

NameTypeRequiredDefaultOptionsDescription
messagestringYes

send()

Arguments

NameTypeRequiredDefaultOptionsDescription
tostringYesList of email address to send the email to
bccstringNoList of email addresses to BCC to
fromstringYesAddress the email is from
replytostringNoReply address
subjectstringYesSubject of email
bodyPlainstringNoPlain text version of email.
bodyHTMLstringNoHTML version of email
attachmentsarrayNo#arraynew(1)#Array of absolute path filenames, to be attached to the email
attachmentstringNoIf there is only one attachment, it can be attached with this argument
rbkeystringNoResource key for translation
variablesanyNo#arrayNew(1)#Resource translation variables