且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过 nodemailer 发送电子邮件时出现 550 错误

更新时间:2023-02-25 11:28:55

所以,似乎这一切都围绕着我使用的发件人电子邮件以及 smtp 地址的一些奇怪之处.

So, it seems this all centered around the sender email I was using and some weirdness with the smtp address.

这有点奇怪,但它的价值在于:mail.com 允许您使用自定义域创建免费电子邮件帐户.所以在这种情况下,我有一些类似的东西:myName@mindless.com"和一个smtp.mail.com"的smtp,这根本不起作用.我创建了第二个 Gmail 帐户,启用了安全性较低的应用程序,更新了信用信息和 smtp 地址,现在它运行良好.

It's kind of an odd one-off, but for what it's worth: mail.com allows you to create a free email account with a customized domain. So in this case, I had something along the lines of: "myName@mindless.com" with an smtp of "smtp.mail.com" and that was simply not working. I made a second gmail account, enabled less secure apps, updated the creds info and smtp address, and it's now working beautifully.