Retrieving the status of emails sent via SendGrid

感情迁移 提交于 2019-11-28 06:28:43

问题


I am creating an application in c# which is using Microsoft Windows Azure cloud platform.

I need to know how come I can track email by using the SendGrid service hosted on azure.The Tracking status May be.

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  

Any help will be appreciated.


回答1:


Those events are sent to you via SendGrid's Event Webhook. To consume the webhook, you must set up a server that accepts POST requests, and processes the data in those POST requests.

This article explains webhooks and and goes on to discuss how to create REST Services in C#, which you'll need to consume the webhook.

Edit: This Github Project acts as a great example of how to use SendGrid's Event Webhook with C#.




回答2:


If you don't want to use our webhooks, you can try:

Web API:

http://sendgrid.com/docs/API_Reference/Web_API/Statistics/index.html http://sendgrid.com/docs/API_Reference/Web_API/Statistics/statistics_advanced.html

Here is some example code:

http://sendgrid.com/blog/using-sendgrid-with-visual-studio-2013-preview-for-windows-8-1-development



来源:https://stackoverflow.com/questions/22167105/retrieving-the-status-of-emails-sent-via-sendgrid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!