Forum Discussion

MikeNewton's avatar
MikeNewton
Copper Contributor
Sep 18, 2022
Solved

Using SendGrid from App Service with a VNet

We have an App Service that sends emails through SendGrid (on smtp.sendgrid.net). Recently we needed to attach a VNet to the App Service and have discovered that when we do this, emails aren't being ...
  • MikeNewton's avatar
    Sep 19, 2022

    It turned out that Azure doesn't block port 25 from an App Service when it has no VNet attached. But as soon as you attach a VNet it blocks the port. The fix was to use an alternate port (like 587). After changing the port our app can again send emails.

Resources