How to set up sending email from noreply@case.one in workflows

 

To set up sending emails from noreply@case.one in a workflow:

  1. Add the Script block to the workflow.
  2. Click the Edit script button on the sidebar.
  3. Add the sendSysMail function in the editor.
  4. Check and save the script.

SendSysMail parameters:

to

emal addresses array, obligatory field

subject

message subject

body

message body

isBodyHtml

present the message text as html: true / false. By default - true.

attachments

array of attachments to the message

 

Example:

sendSysMail({

to: ['user@domain.com'],

subject: 'Message subject',
body: '<p>Message body</p>',

isBodyHtml: true,

attachments: [

{

fileName: 'file.txt',

data: 'file content',

format: 'text' // or 'binary'

}

]

});