Mail Preview
Preview your Nodemailer emails in your browser (Inspired by Letter Opener).
Usage
-
Install via npm
$ npm install mail-preview
-
Use it with Nodemailer
var nodemailer = ;var path = ;;var tmpdir = path;var transport = nodemailer;Any emails sent through the
MailPreview
transport will be written to thetmpdir
and opened in a browser (unlessbrowser
is set to false).
Development
Clone the repo
$ git clone git@github.com:davidcornu/mail-preview.git
Install dependencies
$ npm install
Run the tests
$ npm test