【发布时间】:2020-11-19 23:04:05
【问题描述】:
我的 gmail 帐户也获得了 lesssecureapps 状态
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: worker_email,
pass: worker_pass
}
})
当我尝试时
transporter.sendEmail(options)
我遇到了一个错误:
Error: self signed certificate in certificate chain
at TLSSocket.onConnectSecure (_tls_wrap.js:1321:34)
at TLSSocket.emit (events.js:223:5)
at TLSSocket._finishInit (_tls_wrap.js:794:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:608:12) {
code: 'ESOCKET',
command: 'CONN'
}
【问题讨论】:
标签: node.js email nodemailer