sendEmailForFiles
Function
sendEmailForFiles(to,cc,bcc,fileIds,body,company,subject,includeAnnotation,sendAsLink,sendAsAttachment,compressOutputAtNumberOfBytes)
Description
Sends Vablet files to the specified emails.
Arguments
-
to - An array of objects with the fields name and email
{'name':'x','email':x}Example'to':[{'name':'Test','email':'test@test.com'}] -
cc - An array of emails, optional
-
bcc - An array of emails, optional
-
fileIds - An array of Vablet fileIds to send
-
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
-
includeAnnotation - If this is true, annotations are rendered into the files that are emailed
-
sendAsLink - If this is true sendAsAttachment should be false. Sends the attachments as links to be downloaded instead of a direct attachement.
-
sendAsAttachment - If this is true sendAsLink should be false. Sends as an email attachement.
-
compressOutputAtNumberOfBytes - Currently this must be set to -1 but will in the future allow a threshold specified where it is sent in a zip file when over the threshhold
Return
- success, this is always set to true. Even if the email is not immediatly sent it will remain in queue until it is