Skip to content

useVabletGUIToSendEmailForFiles

Function

useVabletGUIToSendEmailForFiles(fileIds,to,bcc,cc,body,subject)

Description

Presents the Vablet email gui, using the prefilled values specified. Returns success if the email is queued or sent.

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

Returns

  • success - This is a boolean that indicates whether the function was successful or not

  • error - If the function was unsuccessful, then details on the error are returned here