mailgun-listen

0.0.1 • Public • Published

mailgun-listen

Verifies the signature and responds with correct status code on success.

Express Example

var express = require('express')
  , mailgun = require('mailgun-listen')
 
var app = express()
 
app.post('/', mailgun({ key: 'key-123' }, function (mail, done) {
  console.log(mail)
  done()
}))
 
app.listen(8080)

Standalone Example

var mailgun = require('mailgun-listen')
 
mailgun({ key: 'key-123' }, function (mail, done) {
  console.log(mail)
  done()
}).listen(8080)

Install

npm install mailgun-listen

License

MIT

/mailgun-listen/

    Package Sidebar

    Install

    npm i mailgun-listen

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • tellnes