相关疑难解决方法(0)

Nodemailer:ECONNREFUSED

我不知道我缺少什么,我使用Nodemailer示例:

var nodemailer = require("nodemailer");

// create reusable transport method (opens pool of SMTP connections)
var smtpTransport = nodemailer.createTransport("SMTP",{
    service: "Gmail",
    auth: {
        user: "gmail.user@gmail.com",
        pass: "userpass"
    }
});

// setup e-mail data with unicode symbols
var mailOptions = {
    from: "Fred Foo ? <foo@blurdybloop.com>", // sender address
    to: "bar@blurdybloop.com, baz@blurdybloop.com", // list of receivers
    subject: "Hello ?", // Subject line
    text: "Hello world ?", // plaintext body
    html: "<b>Hello world ?</b>" // html body
}

// send mail with …
Run Code Online (Sandbox Code Playgroud)

node.js nodemailer

10
推荐指数
1
解决办法
2万
查看次数

标签 统计

node.js ×1

nodemailer ×1