Applies for Nodemailer v1.x.
Install with npm
npm install nodemailer-browserpreview-transport
Require to your script
var nodemailer = require("nodemailer");
var browserPreviewTransport = require("nodemailer-browserpreview-transport");
Create a Nodemailer transport object
var transport = nodemailer.createTransport(browserPreviewTransport({
dir: "/tmp"
}));
nodemailer-browserpreview-transport is licensed under the MIT.