# mandrill-webhook-mail-forwarder

> Node Module to send a mandrill formatted event to a specified email account via Mandrill

Latest version **2.0.0** (published 2016-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install mandrill-webhook-mail-forwarder
pnpm add mandrill-webhook-mail-forwarder
yarn add mandrill-webhook-mail-forwarder
bun add mandrill-webhook-mail-forwarder
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2016-01-31 |
| First published | 2016-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aigeec |
| Maintainers | aigeec |
| Keywords | mandrill, inbound, webhook |

## Links

- npm: https://www.npmjs.com/package/mandrill-webhook-mail-forwarder
- Repository: https://github.com/Aigeec/mandrill-webhook-mail-forwarder
- Issues: https://github.com/Aigeec/mandrill-webhook-mail-forwarder/issues
- npm.io page: https://npm.io/package/mandrill-webhook-mail-forwarder

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.0.0
- [bluebird](https://npm.io/package/bluebird.md) ~3.1.1
- [mandrill-api](https://npm.io/package/mandrill-api.md) ~1.0.45

## Recent versions

- 2.0.0 (latest) — 2016-01-31
- 1.0.3 — 2016-01-29
- 1.0.2 — 2016-01-29
- 1.0.1 — 2016-01-28

## 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
```bash
$ npm install mandrill-webhook-mail-forwarder--save
```
## Usage

This module

```javascript
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

```javascript
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
```bash
$ npm test
```
## Links

  [api documentation](./docs/api.md)

  [jscs Report](./docs/jscs.md)

  [jshint Report](./docs/jshint.md)

## Contributing

  Use [Airbnb jscs style guide](https://github.com/airbnb/javascript).

  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](https://tldrlegal.com/license/mit-license).

---
_Source: https://npm.io/package/mandrill-webhook-mail-forwarder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
