我尝试使用 nodemailer 通过我的 gmail 帐户发送电子邮件。
但是,Google 以可疑为由拒绝我的登录,并认为我是黑客。
我试过 Yahoo 确实会发送电子邮件。
我的问题是:
1) How can I configure nodemailer to send emails thru gmail 2) Standard/Reliable email library in node.js community with good support that can be used in production.
最佳答案
我最近也在玩这个,我从谷歌收到的错误只是说我需要创建一个应用程序专用密码。尝试按照说明 here .
关于你的第二个问题,我不知道有什么理由不能在生产中使用nodemailer。
关于node.js - 在 node.js/nodemailer 中发送邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18177889/