mandrill-webhook-mail-forwarder

2.0.0 • Public • Published

mandrill-webhook-mail-forwarder

A express compatible middleware Node Module to send a list mandrill formatted events to a specified email account via Mandrill.

Installation

$ npm install mandrill-webhook-mail-forwarder--save

Usage

This module

var forwarder = require('mandrill-webhook-mail-forwarder');
 
app.use(forwarder(options));
 

The forwarder expects the events to be available at req.mandrillEvents. The events should be in the format of a mandrill event. Will call next when all mails are sent.

Options

var options = {
  forwardTo: 'address@to.forward.to',
  mandrillApiKey: 'Your mandrill api key'
};
  • forwardTo: the address you want to send the email message to
  • mandrillApiKey: Your mandrill api key

Tests

$ npm test

Links

api documentation

jscs Report

jshint Report

Contributing

Use Airbnb jscs style guide.

Add unit tests for any new or changed functionality. Lint and test your code.

Release History

Not yet released.

Legal Stuff

mandrill-webhook-mail-forwarder is Copyright 2016 Aodhagán Collins. All Rights Reserved.

Distributed under MIT License.

Package Sidebar

Install

npm i mandrill-webhook-mail-forwarder

Weekly Downloads

9

Version

2.0.0

License

MIT

Last publish

Collaborators

  • aigeec