Passer au contenu principal

01 send mailgun email

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

Metadata

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!"

})
)
)