【发布时间】:2018-04-23 02:28:15
【问题描述】:
我正在使用 Nodemailer 向 Etheral 发送电子邮件以进行测试。使用“firebase serve”在本地运行一切正常...当我在全球部署它时,每次尝试发送电子邮件时都会收到此错误。我认为它来自 Node.js(不是 Nodemailer 的错)......我不知道为什么......我正在使用“免费计划”;不付钱。
{ Error: getaddrinfo ENOTFOUND smtp.ethereal.email smtp.ethereal.email:587
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
code: 'ECONNECTION',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'smtp.ethereal.email',
host: 'smtp.ethereal.email',
port: 587,
command: 'CONN' }
这可能是因为我有免费计划吗?服务器上的某种类型的限制?只需要一个明确的答案,这样我就可以继续开发......
【问题讨论】:
标签: javascript node.js firebase google-cloud-functions nodemailer