Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

OpenFn/language-mailgun

Repository files navigation

Language Mailgun

Language Pack for building expressions and operations for working with the mailgun API.

mailgun-js on npm

Documentation

Sample configuration

{
  "domain": "http://mailgun.com/domain",
  "apiKey": "mailgunapikey"
}

send

send(
  fields(
    field('from', 'from_email'),
    field('to', 'to_email'),
    field('subject', 'Your Subject'),
    field('text', 'Your message goes here')
  ))

Docs

Development

Clone the repo, run npm install.

Run tests using npm run test or npm run test:watch

Build the project using make.