Skip to main content

01 send mailgun email

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


Key Functions

dataValue, field, fields, send


field('from', ''),
field('to', ','),
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!"