首页 > 解决方案 > Sendgrid 未处理的错误持续存在于新创建的帐户中

问题描述

我制作了一个联系表格,用户可以在其中向管理员发送消息。使用必须提供我有文本的消息,然后他必须提供他的电子邮件 ID 和他的姓名。点击发送后,管理员应该会收到一条消息。

我使用了 SendGrid 最近的 API,它确实需要一些更改,但我不想手动给单个发件人。我希望任何来到我网站的人都应该能够通过联系表格与我交流。

可能是我们都知道的正常联系方式。

我检查了控制台日志,它给出了一个错误,比如

{
    errors: [{
        message: 'The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity
        requirements ',
        field: 'from',
        help: null
    }]
}

这表明用户输入的值不是经过验证的地址,我可以使用单个发件人并使其工作,但我不想要这样的手动工作。相反,每个人都应该能够与我联系,我不需要在我的 SendGrid 上手动添加它们。

标签: javascriptnode.jsreactjsnext.jssendgrid

解决方案


推荐阅读