Nodemailer错误连接ECONNREFUSED

时间:2017-02-24 23:23:25

标签: node.js email nodemailer

在一个过程中,我从请求中接收数据并将其保存到数据库,在验证它已保存后,我发出内部请求以发送邮件并传递一些参数以生成要附加的PDF文件。

En un proceso recibo datos deunaticiciónylos guardo a una base de datos,tras verificar queseguardóhagoun request interno para hacerelenviódelcorreo y la pasounosparámetrosparagenerar un archivo PDF para ser adjuntado。< / p>

Configuración

var transporter    = nodemailer.createTransport({
//service: 'Gmail',
host:'smtp.gmail.com',
port: 465,
secure: true,
auth: {
    user: 'juanvilu',
    pass:  'password_correcto'
},
logger: bunyan.createLogger({
    name: 'nodemailer'
}),
debug: true // include SMTP traffic in the logs    

});

Salidas en consola

{"name":"nodemailer","hostname":"D00-8039H02","pid":6032,"level":50,"msg":"Send Error: connect ECONNREFUSED 108.177.9.108:465","time":"2017-02-24T23:05:19.768Z","v":0}

{"name":"nodemailer","hostname":"D00-8039H02","pid":6032,"level":50,"msg":"Send Error: connect ECONNREFUSED 108.177.9.108:465","time":"2017-02-24T23:05:19.768Z","v":0}

0 个答案:

没有答案