CNode

[ANN] sendmail published 0.1.2

Gguilin发布于14 年前最后回复14 年前4 回复5620 浏览0 收藏

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

F
fengmk2#1·14 年前

调用谁的smtp?

G
guilin#2·14 年前
引用 fengmk2调用谁的smtp?

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

Z
zdarks#3·14 年前

这么厉害,

J
jin52yang#4·14 年前

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

参与回复
登录后即可参与回复。登录