特点:不需要设置SMTP服务器,直接发送邮件(适合用来发送no-reply邮件,发送垃圾邮件也可以, 凸)
使用
sendmail = require('sendmail').sendmail;
sendmail({
from: 'no-reply[@yourdomain](/user/yourdomain).com',
to: 'test[@qq](/user/qq).com, test[@sohu](/user/sohu).com, test[@163](/user/163).com ',
subject: 'test sendmail',
content: 'Mail of test sendmail ',
}, function(err, reply) {
console.log(err && err.stack);
console.dir(reply);
});
项目地址 https://github.com/guileen/node-sendmail
0.1.2 fix a little bug