How to send emails to multiple recipients
When notifying agents by e-mail you might want to include additional e-mail addresses.
Send e-mail to 1 recipient
The following example shows you how to send an e-mail to a single recipient.
async payload => {
// Send an email
toolbelt.email({
to: '[email protected]',
subject: 'Report needed',
message: 'If only you knew the power of the dark side.'
})
}
Send e-mail to multiple recipients
The following example allows you to send an e-mail to multiple recipients by creating an array.
async payload => {
// Send an email
toolbelt.email({
to: ['[email protected]','[email protected]'],
subject: 'Report needed',
message: 'If only you knew the power of the dark side.'
})
}