包详细信息

nodemailer-pickup-transport

andris93.1kMIT0.1.1

Pickup transport for Nodemailer

Pickup, Nodemailer

自述文件

Pickup transport module for Nodemailer

Applies for Nodemailer v1.x and not for v0.x where transports are built-in.

Usage

Install with npm

npm install nodemailer-pickup-transport

Require to your script

var nodemailer = require('nodemailer');
var pickupTransport = require('nodemailer-pickup-transport');

Create a Nodemailer transport object

var transporter = nodemailer.createTransport(pickupTransport(options))

Where

  • options defines connection data
    • directory - The directory where applications save e-mail for later processing by the SMTP server (required)

Example

var transport = nodemailer.createTransport(pickupTransport({
    directory: 'C:\\inetpub\\mailroot\\Pickup'
}));

License

MIT

更新日志

Changelog

v0.1.1 2014-08-06

Wait for the 'finish' event of the output stream (instead of the 'end' event of input stream) before returning the callback.