smtp-supertest

0.0.2 • Public • Published

Smtp supertest

Smtp supertest lib for testing sent mail in your node apps.

Installation

$ npm install smtp-supertest

Usage

Simply create a new SmtpSupertest() and start listening:

var SmtpSupertest = require('smtp-supertest');
 
var smtpSupertest = new SmtpSupertest();
 
smtpSupertest.listen(8465);

When the smtp-supertest receives mail it will emit a 'email' event and with parsed email object:

smtpSupertest.on('email', function(mail) {
  // Assert your mail here
});

License

(The MIT License)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i smtp-supertest

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • tadeuszwojcik