Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
568 views
in Technique[技术] by (71.8m points)

.net - Retrieving the status of emails sent via SendGrid

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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#.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...