[ANN] sendmail published 0.1.2
发布于 12 年前 作者 guilin 4743 次浏览 最后一次编辑是 8 年前

特点:不需要设置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

4 回复

调用谁的smtp?

自己就是SMTP,与SMTP服务器向目标服务器发邮件时的行为一致。

这么厉害,

不需要设置SMTP服务器,看看

回到顶部