Hello,
I have a Visual Studio 2013 Web site on Azure. I'm using the latest SendGrid transportRest.Deliver(myMessage) in C#. I want to send emails to everyone on my site programattically. The code sends the emails to mymyaccount@outlook.com and also my ISP email account with no problems. But, me and a friends Gmail account don't receive the exact emails. I've played with the code to send and email to outlook.com(works), then used the same code but just changed the email address to gmail in "myMessage.AddTo("me@gmail.com"), but nothing. So, the code is fine, I pasted it below, but is there something I should know about sending to Gmail (I did check the SPAM folder, but nothing)?
Thanks,
Gary
SendGrid myMessage = SendGrid.GetInstance(); myMessage.AddTo(plyr.EmailAlt); myMessage.From = new MailAddress("dontreply@noreply.com", fullName); myMessage.Subject = "Message from " + fullName + ". Subject: " + subject; myMessage.Text = message; // Create credentials, specifying your user name and password. var credentials = new NetworkCredential("myaccounthere@azure.com", "mypasswordhere"); // Create a REST transport for sending email. var transportREST = Web.GetInstance(credentials); // Send the email. transportREST.Deliver(myMessage);