检索通过SendGrid发送的电子邮件的状态

coo*_*shu 1 .net email azure sendgrid

我正在使用Microsoft Windows Azure云平台的c#中创建一个应用程序。

我需要知道如何使用azure上托管的SendGrid服务跟踪电子邮件。跟踪状态可能是。

4. Track sent emails to determine if they were:
4.1 delivered
4.2 opened
4.3 recipient opt-out
4.4 bounced (with the reason for the bounce)
4.5 time/date sent
4.6 which links in the email were clicked (and time/date they were clicked)
4.7 IP address, if user clicked any links in the email  
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激。

Nic*_* Q. 5

这些事件通过SendGrid的Event Webhook发送给您。要使用Webhook,您必须设置一个服务器来接受POST请求,并处理这些POST请求中的数据。

文章解释了网络挂接,并和继续讨论如何建立在C#REST服务,您就需要消耗网络挂接。

编辑:此Github项目充当了如何在C#中使用SendGrid的事件Webhook的一个很好的例子。