node.js - 在 node.js/nodemailer 中发送邮件

标签 node.js nodemailer

我尝试使用 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/

相关文章:

node.js - 如何使用 npm 包进行部署

Node.js Nodemailer 和 SES - 错误 : No transport method defined

node.js - Nodemailer 不适用于 Aruba Webmail

amazon-web-services - 使用 Nodemailer 和 AWS SES 通过导入发送电子邮件

node.js - 如何使用 Node.js 处理大型(1000+ 个文件)目录中的文件?

node.js - 限制 Node JS Express 中的 api 访问

node.js - 迁移 - SequqlizeCLI 和/或带有 node.js 的 Umzug。使用 Sequelize CLI 和 Umzug 的区别?

node.js - Google 计算主管 Nodejs https

javascript - Nodemailer - 重定向到成功页面

node.js - 无法使用expressjs和nodejs发送电子邮件