Azure web app suddenly stopped sending emails

Priya Pinto 1 Reputation point
2022-02-09T12:58:30.997+00:00

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 xyz.com : smtp.office365.com
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,874 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vidya Narasimhan 2,201 Reputation points Microsoft Employee
    2022-02-09T15:40:32.297+00:00

    @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 https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365


  2. SnehaAgrawal-MSFT 18,286 Reputation points
    2022-02-18T08:09:34.527+00:00

    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