Hi,
I think you have this problem described here: Troubleshoot outbound SMTP connectivity problems in Azure
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We are using SendGrid C# Library (SMTP API) to send out emails from our windows service running on Azure VM. Our service works great and sends out emails when running locally but when deployed on VM, SendGrid method 'SendEmailAsync' never completes. We need to know if there is any setting that needs to be done on VM to make this work?
Hi,
I think you have this problem described here: Troubleshoot outbound SMTP connectivity problems in Azure
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
Thanks for the link Stan. Sorry for the delay, it took us a while to figure out, but the answer was that when we deployed the SendGrid application to the Azure VM it defaulted to SMTP port 25, which is blocked automatically, instead of the default SendGrid port 587. We had to manually set the port to 587 and then it worked. But before that there was no indication of what the issue was. Everything indicated that the email was successfully sent but it wasn't and there were no error messages that showed us the way. As I said, locally, in the development environment, the application worked just fine.