Skip to content

Instantly share code, notes, and snippets.

@aleksa-krolls
Created December 5, 2018 13:11
Show Gist options
  • Save aleksa-krolls/497ff473e5154244f5d7a272004d528c to your computer and use it in GitHub Desktop.
Save aleksa-krolls/497ff473e5154244f5d7a272004d528c to your computer and use it in GitHub Desktop.
//Jobs are evaluated as Javascript...
//Here we are named functions from the OpenFn Mailgun language-pack: https://github.com/openfn/language-mailgun
send(
fields(
field('from', 'sebastian@gmail.com'),
//You can send to multiple email addresses by separating with a comma
field('to', 'sebastian@gmail.com, recipient2@email.com'),
field('subject', 'Kobo: New Form Submitted'),
field('text', 'Log into Kobo to review the new form submitted.')
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment