I'm trying to set up SendGrid in Azure and use it to facilitate emailing in Sitecore by populating the MailServer (MailServer, MailServerUserName, MailServerPassword, MailServerPort) values in the config to the values specific to the SendGrid service I set up. I've tested that I can authenticate and email from this service using some telnet command line commands, but when it comes to Sitecore, it appears that proper communication is not occuring.
When I try to test by going through the "Forgot My Password" flow, I get a silent error that's logged in the logs reading:
10404 18:01:39 ERROR SMTP client email sending failed. Exception: System.Net.Mail.SmtpException Message: The server committed a protocol violation The server response was: Source: System at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result) at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)
My suspicion is that my credentials aren't getting passed properly. If I put in bogus values for username / password, the outcome isn't any different errorwise. If anyone has set this up before, I'd appreciate any perspective you might have on troubleshooting this or otherwise general advice about how to set this up properly.