节点JS:Sendgrid Mail 403'Forbidden'错误 [英] Node JS: Sendgrid Mail 403 'Forbidden' error

查看:91
本文介绍了节点JS:Sendgrid Mail 403'Forbidden'错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Node js项目中的Send grid发送非常简单的电子邮件.但是我返回了403禁止错误.API密钥具有完全访问权限.该代码也已正确集成,因为我使用了另一个帐户的另一个API密钥,因此效果很好.

I am sending a very straightforward email using Send grid in my node js project. But I get returned a 403 Forbidden error. The API Key has full access. The code is also correctly integrated, as I used another API Key from another account and it works perfectly.

错误日志:

Error log:

有什么建议吗?

推荐答案

错误存在,因为未验证消息中的发件人"字段中的电子邮件地址(在您的nodejs代码中,将使用sendgrid发送)sendgrid.只能将该电子邮件地址放入sendgrid明确验证的发件人"字段中.

The error exists as the email address in the "from" field in the message(in your nodejs code,, to be sent using sendgrid) is not verified by sendgrid. Only put that email address in the "from" field which is explicitely verified by sendgrid.

要验证您的发件人电子邮件地址是否可以发送电子邮件,请参阅以下链接:-

To verify your sender email address to be able to send emails, refer to the link below:-

https://sendgrid.com/docs/ui/sending-email/发件人验证

希望这会有所帮助.

(有关域名的其他问题,请正确阅读链接,其中有关于gmail.com地址使用的警告,您可以忽略它)

(There could be further issues regarding domain name, read the link properly, they have a warning regarding use of gmail.com addresses, you can ignore that)

这篇关于节点JS:Sendgrid Mail 403'Forbidden'错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆