0.1.7 • Published 10 years ago

smtpd v0.1.7

Weekly downloads
30
License
-
Repository
github
Last release
10 years ago

node-smtpd

var cclog = require('cclog')
var box = require('../smtpd')({
    logger: cclog
});

box.on('msg', function(from, to, msg, body) {
    cclog.info('on msg');
    cclog.info(from);
    cclog.info(to);
    cclog.info(msg);
    cclog.info(body)
});

box.on('error', function(err, mail) {
    if(err){
      cclog.error(err);
    }
    cclog.log(mail)
});

box.listen(25, function() {
    console.log('server listen at', box.address().port)
    testSend();
});

Similar project

smtpd-lite

0.1.7

10 years ago

0.1.6

10 years ago

0.1.4

11 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago