1.1.0 • Published 7 years ago

mailgun-stream v1.1.0

Weekly downloads
84
License
MIT
Repository
github
Last release
7 years ago

mailgun-stream

Streaming module for mailgun

Install

npm install mailgun-stream

Usage

const mail     = require('mailgun-stream');
const domain   = "myapp.com";
const key      = "<mailgun api key>";

// Authenticate to mailgun
mail.config({
  key: key,
  domain: domain,
  sender: `noreply@${domain}`
});


// Setup a some defaults
var opts = {
  subject: "A default subject!",
  body: "this is the msg you'll see if a body doesn't already exist"
}

// Grab a msg, apply our defaults, send the mail, and then continue sending the msg down the pipe
fetchMsgFromQueue().pipe(defaults(opts)).pipe(mail.send()).pipe(whatever)
1.1.0

7 years ago

1.0.0

7 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.1.0

9 years ago