cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code-based Actions: Send email to multiple recipients

Code-based Actions: Send email to multiple recipients

Use cloud code to send e-mail to multiple recipients

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: 'email1@yourdomain.com',
    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: ['email1@yourdomain.com','email2@yourdomain.com'],
    subject: 'Report needed',
    message: 'If only you knew the power of the dark side.'
  })
}
Labels (1)

Code-based Actions: Send email to multiple recipients

Use cloud code to send e-mail to multiple recipients

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: 'email1@yourdomain.com',
    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: ['email1@yourdomain.com','email2@yourdomain.com'],
    subject: 'Report needed',
    message: 'If only you knew the power of the dark side.'
  })
}
Labels (1)

Code-based Actions: Send email to multiple recipients

Use cloud code to send e-mail to multiple recipients

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: 'email1@yourdomain.com',
    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: ['email1@yourdomain.com','email2@yourdomain.com'],
    subject: 'Report needed',
    message: 'If only you knew the power of the dark side.'
  })
}
Labels (1)
Version history
Last update:
‎06-19-2021 11:17 AM
Updated by:
Contributors