0

I have a contact form on my website hosted on Azure App Service, used to send emails through SendGrid. It works well when I use the website with the default Azure URL ***.azurewebsites.net, but I does not work when I use the custom domain attached to the Azure App Service.

Any idea if it could come from SendGrid configuration?

Thank you.

Bertrand Pons
  • 257
  • 2
  • 18
  • Sending email with SendGrid utilizes an [API key](https://learn.microsoft.com/en-us/azure/sendgrid-dotnet-how-to-send-email#how-to-send-an-email), which isn't tied to the domain of your app service. What error messages are getting emails are sent from your custom domain? – Ryan Hill Dec 24 '20 at 04:21
  • Has your problem been solved? Is there any progress? – Jason Pan Dec 29 '20 at 09:22

1 Answers1

0

When you use custom domain in web app, you need to set up domain authentication in sendgrid.

1. How to set up domain authentication

2. Configure SendGrid in Microsoft Azure for email campaigns and smtp relay

After valied your custom domain, your issue will be solved.

Jason Pan
  • 15,263
  • 1
  • 14
  • 29