7

I using SendGrid in asp.net mvc. I use this code to send email :

var myMessage = new SendGridMessage();
myMessage.From = new MailAddress("john@example.com");
myMessage.AddTo("testing@something.com");
myMessage.Subject = "Subject";

myMessage.Text = "testing";
var credentials = new NetworkCredential("*********@azure.com", "");
Web transportWeb = new Web(credentials);
await transportWeb.DeliverAsync(myMessage);

The problem is that the email take around 5 minutes to reach the destination. Is this the normal case ? if it is normal how can I decrease this time ?

12
  • 1
    It depends on the processing speed of the SendGrid and intermediate/destination Mail Transfer Agent (MTA) servers. Such latency has nothing to do with the code used as SendGrid will accept the message almost instantly on "Deliver". Aug 10, 2015 at 0:31
  • 3
    Take a look at this document on troubleshooting latency with emails. I too have seen issues with SendGrid taking longer than I would want (5 minutes or greater - up to 15 minutes) in my application. I'm just starting to dig into this myself.
    – Hallmanac
    Nov 2, 2015 at 17:25
  • @AhmedShamel have you ever figured out the delay problem with sengrid? I know the . question asked 3 years ago but maybe you still remember somehow? I suspect if it is because of the free account limitation or not.
    – Gunhan
    Oct 9, 2018 at 13:47
  • 4
    4 years later and i'm also seeing 5 minute delays with sendgrid when receiving an email on gmail. Nov 4, 2019 at 14:51
  • 2
    4 years and 9 months later delays are much more than 5 minutes. May 29, 2020 at 11:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.