SendEmail
Function
SendEmail(to,cc,bcc,body,company,subject,queueIfNotAbleToSend,disableEmailTemplate,disableAttachment,attachmentName,attachmentDataBase64Encoded)
Description
Sends an email, attachement optional. If queueIfNotAbleToSend is equal to true than returns true even if not able to send right away.
Arguments
-
to - An array of email strings
-
cc - An array of email strings, optional
-
bcc - An array of email strings, optional
-
body - Body of the email, note that the Vablet template will be used so the output will not soley be this body
-
company - Company of the recipient, for logging purposes
-
subject - Subject of the email
-
queueIfNotAbleToSend - Continue trying to send the email until it succesfully goes through
-
attachmentDataBase64Encoded - The base64
encodeddata -
attachmentName - File name of attachment
-
disableEmailTemplate - Disable the email template set up by the administrator and send the email as is
-
disableAttachment - Disable attachments, send email without attachements of any sort
Return
- success, this is always set to true if queueIfNotAbleToSend is true. If queueIfNotAbleToSend is set then if the email is not immediatly sent it will remain in queue until it is