mandrill-webhook-mail-forwarder
v2.0.0
Published
Node Module to send a mandrill formatted event to a specified email account via Mandrill
Downloads
9
Readme
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: '[email protected]',
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
Contributing
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.