Share via


Configure Azure VM to use SendGrid SMTP

Question

Friday, February 8, 2019 3:51 AM

Hi,

I've seen some other articles that using stmp server on my application code for sending e-mails on Azure VM will work. But as I see SendGrid on Azure App Services I was wondering how can I configure my Azure VM in such a way that Whenever it receives any outbound e-mail query it will directly use SendGrid SMTP. SO that I don't have to configure SMTP auth for each application on my VM as I am having a ton of application using PHP default mail function.

Any help would be appreciated. 

All replies (2)

Friday, February 8, 2019 6:40 PM

Using SendGrid with a VM running your Apps vs running them in an App service should be the same. The requirements to configure each app to use SendGrid would still be there. In my experience you cannot simply forward traffic to sendgrid and have it work out. You need to configure each app to work with sendgrid. 

/en-us/azure/sendgrid-dotnet-how-to-send-email

You might consider reaching out to SendGrid directly to see if there are any work around for this. I am not aware of any but the experts there would know their product better than I would. 


Friday, March 1, 2019 11:51 PM

Any update? Did the suggestion shared above help?

Karishma Tiwari - MSFT