【发布时间】:2022-08-12 06:39:49
【问题描述】:
随着 Google 于 2022 年 5 月 30 日关闭 Less secure apps,现在将 Gmail 与 nodemailer 一起使用会引发错误,显示为 response: \'535-5.7.8 Username and Password not accepted. Learn more at\\n\' + \'535 5.7.8 https://support.google.com/mail/?p=BadCredentials。 Nodemailer docs 似乎尚未更新关于安全性较低的应用程序的问题,但建议使用其他交付提供商。我以前只是打开 LSA,将凭据存储在环境变量中,然后让 nodemailer 做它的事情,通过这个更改,如何仍然可以将 gmail 与 nodemailer 一起使用?目前还没有 youtube 教程来解决这个问题,查看 google documentation,它没有显示 nodemailer
标签: email gmail credentials nodemailer