Azure web app suddenly stopped sending emails

Priya Pinto 1 Reputation point

Since Jan 2022, we have noticed that emails are not being sent from the Azure web apps.

We are using the following to send emails from the web apps.
a) SMTP service of our domain :
b) SMTP port : 587
c) Credentials. We have a valid user whose credentials are provided to authenticate the emails sent.

We have tested the email in local environment and its working for following scenarios:

  1. Email successfully send from one user in xxxx domain to another user in same domain.
  2. Email successfully send from one user in xxxx domain to another user in a different domain.

None of the scenarios are working in a production environment.

Kindly help us to solve the issue.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,766 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vidya Narasimhan 2,201 Reputation points Microsoft Employee

    @Priya Pinto can you please check if you are hitting the throttling limits of O365 (30 mails per minute) in production as per this link

  2. SnehaAgrawal-MSFT 18,191 Reputation points

    Thanks! As above mentioned by Vidya, We recommend to use authenticated SMTP relay services to send email from Azure VMs or from Azure App Service.

    (These relay services typically connect through TCP port 587, but they support other ports.) These services are used to maintain IP and domain reputation to minimize the possibility that external domains reject your messages or put them to the SPAM folder.

    SendGrid is one such SMTP relay service, but there are others. You might also have an authenticated SMTP relay service on your on-premises servers.

    Using these email delivery services isn't restricted in Azure, regardless of the subscription type.

    Let us know if you have further query on this or issue remains.

    0 comments No comments