简体   繁体   English

SendGrid - 如何在通过 SendGrid 发送邮件时验证 email 送达

[英]SendGrid - How to validate email delivery when mail is send via SendGrid

Our team recently used SendGrid to build a new email service.我们的团队最近使用 SendGrid 构建了一个新的 email 服务。 From the standpoint of testing, we have a use case to determine whether or not the email was sent.从测试的角度来看,我们有一个用例来确定是否发送了 email。

We discovered inbound parse while seeking a solution.我们在寻求解决方案时发现了入站解析。 This inbound parsing takes incoming emails and redirects them to a webhook URL. There are some problem statements that prevent us from completing validation with inbound parsing, and there are some access reasons that prevent us from doing so.此入站解析接收传入的电子邮件并将它们重定向到 webhook URL。有一些问题陈述阻止我们使用入站解析完成验证,并且有一些访问原因阻止我们这样做。

I'd like to know if there is another method to accomplish this.我想知道是否有另一种方法可以实现这一点。

I think you're looking for the Event Webhook rather than the Inbound Parse Webhook.我认为您正在寻找Event Webhook而不是 Inbound Parse Webhook。 The Event Webhook will batch up and send events based on the emails you've sent, in this case when you receive the "delivered" event it tells you that the email has been successfully delivered to the receiving server. Event Webhook 将根据您发送的电子邮件批量发送事件,在这种情况下,当您收到“已发送”事件时,它会告诉您 email 已成功发送到接收服务器。

There are other delivery events that are useful too, like "deferred", "bounced", or "blocked".还有其他有用的传递事件,如“延迟”、“退回”或“阻塞”。 And other events, like engagement events such as "open" or "click".以及其他事件,例如“打开”或“点击”等参与事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM