Skip to content

Commit

Permalink
Update authentication example
Browse files Browse the repository at this point in the history
  • Loading branch information
mofux committed Oct 8, 2017
1 parent 1626554 commit 21ba4bb
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions example/authentication.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
var mailer = require('./../lib/server.js');
var async = require('async');

var servers = mailer.createServer({
listen: {
smtp: false,
smtps: false,
smtptls: 25
}
}, function(session) {
const mio = require('../src/index.js');
const server = new mio.Server({}, (session) => {

session.on('auth', function(req, res) {

Expand All @@ -22,3 +14,4 @@ var servers = mailer.createServer({

});

server.listen(2525, () => console.log('SMTP server up on port 2525'));

0 comments on commit 21ba4bb

Please sign in to comment.