标签: node.js gmail nodemailer
使用Google帐户通过nodemailer发送邮件,在本地运行时运行正常,但在服务器上失败。
var smtpTransport = nodemailer.createTransport("SMTP", { service: "Gmail", auth: { user: "my email ", pass: "my pass" } });