Skip to main content

01 send mailgun email

This job was provided by an OpenFn.org user via the job library API.

Metadata

  • Name: 01 send mailgun email
  • Adaptor: @openfn/language-mailgun
  • Adaptor Version: latest
  • Created almost 7 years ago
  • Updated almost 7 years ago
  • Score: 0 (an indicator of how useful this job may be)

Key Functions

dataValue, field, fields, send

Expression

send(
fields(
field('from', 'aleksa@openfn.org'),
field('to', 'aleksa@openfn.org, aleksa@verasolutions.org'),
field('subject', 'Kobo: New Form Submitted'),
//You can write your own custom, anonymous functions to do whatever you desire - see function(state)
field('text', function(state) {
const msgText = "A form was submitted by "+ dataValue("_submitted_by")(state) + ". Please login to review!"
return msgText
//result will be an email with body text "A form was submitted by [Kobo Submitted By User]. Please login to review!"

})
)
)