Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Firebase后端节点.js Nodmailer';ENOTFOUND';_Javascript_Node.js_Firebase_Google Cloud Functions_Nodemailer - Fatal编程技术网

Javascript Firebase后端节点.js Nodmailer';ENOTFOUND';

Javascript Firebase后端节点.js Nodmailer';ENOTFOUND';,javascript,node.js,firebase,google-cloud-functions,nodemailer,Javascript,Node.js,Firebase,Google Cloud Functions,Nodemailer,我正在使用Nodemailer向以太发送电子邮件以进行测试。“firebase服务”在本地运行时一切正常。。。在全局部署时,每次尝试发送电子邮件时都会出现此错误。我认为它来自Node.js(不是nodeEmailer的错)。。。我不明白为什么。。。我使用的是“自由计划”;不付钱 { Error: getaddrinfo ENOTFOUND smtp.ethereal.email smtp.ethereal.email:587 at errnoException (dns.js:28:1

我正在使用Nodemailer向以太发送电子邮件以进行测试。“firebase服务”在本地运行时一切正常。。。在全局部署时,每次尝试发送电子邮件时都会出现此错误。我认为它来自Node.js(不是nodeEmailer的错)。。。我不明白为什么。。。我使用的是“自由计划”;不付钱

 { 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' }

这可能是因为我有一个免费的计划;服务器上存在某种类型的限制?只需要一个明确的答案,我就可以继续开发…

免费计划云功能只允许调用谷歌服务。您的电子邮件服务器
smtp.ethereal.email
不是Google服务,因此连接被拒绝


另请参阅,我本应将您的问题作为重复的问题结束。

谢谢。是的,如果你愿意,你可以关闭它!当我在谷歌上搜索时没有发现这个问题。。。我要试试这个灭火计划。看起来对于小型应用程序来说,它实际上是免费的。非常好。将使用此网站搜索问题;这是完全一样的几乎笑。