Reputation: 647
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.
Upvotes: 2
Views: 7170
Reputation: 3986
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#.
Upvotes: 5
Reputation: 2228
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
Upvotes: 2