aws-ses-feedback makes it easy to handle feedback from aws ses.
JavaScript
Switch branches/tags
Nothing to show
Latest commit 2d05e14 Oct 25, 2012 @tellnes tellnes 0.0.2
Permalink
Failed to load latest commit information.
Readme.md initial version Oct 23, 2012
example.js initial version Oct 23, 2012
index.js fix feedback.listen Oct 25, 2012
package.json 0.0.2 Oct 25, 2012

Readme.md

AWS SES Feedback

aws-ses-feedback makes it easy to handle feedback from aws ses.

Install

npm install aws-ses-feedback

Example

var sesFeedback = require('aws-ses-feedback')

var feedback = sesFeedback( { url: '/feedback'
                            , region: 'us-east-1'
                            , account: 'xxx'
                            , topic: 'xxx'
                            })

feedback.on('bounce', function(message) {
  console.log(message)
})

feedback.on('complaint', function(message) {
  console.log(message)
})

feedback.on('error', function(err) {
  console.error(err)
})

feedback.listen(8080)

Connect / Express compatible

var app = connect()
  , feedback = sesFeedback()

app.use(feedback)

app.listen(8080)

Options

url

req.url must be equal to options.url. Defaults to /.

region, account and topic

Used to verify incomming notification. Se aws-snsclient request verification for details.

Licence

MIT