javascript - 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 上手动添加它们。
解决方案
推荐阅读
- sql - SELECT COUNT INTO 变量
- python - 使用 python 子进程和超时命令运行 Matlab 脚本
- html - SVG图像背景填充路径
- python - 是否可以使用降价在 Jupyter Notebook 的目录中创建嵌套的有序列表?
- node.js - docker构建镜像时找不到模块
- delphi - 构建 Delphi 10 项目组时的 MSBuild 警告(MSB4011 和其他)
- highcharts - Highcharts Highmaps 如何更改地图气泡中颜色轴的值
- javascript - 将 ICS 格式转换为有效的 JS 格式
- pandas - pandas:基于不同行值的多行条件
- c# - 是否可以在 C# 中模拟给定类的新创建实例?