【问题标题】:nodemailer error self signed certificate in certificate chain证书链中的nodemailer错误自签名证书
【发布时间】: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


    【解决方案1】:

    请看这个简短的回答:https://stackoverflow.com/a/64913747/5172977

    基本上,这可能与您的传输设置有关。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-26
      • 1970-01-01
      • 2012-08-24
      • 2017-12-18
      • 2015-09-08
      • 2022-06-16
      • 1970-01-01
      • 2019-01-23
      相关资源
      最近更新 更多