@Suvarna Thanks for reaching here!
You might want to know that to send email from the web application, you need to use a relay service. This is a requirement for all Azure services, including VMs and cloud services. Azure does not allow direct email sending to prevent SPAM abuse. You can use SendGrid, O365, other third-party relay services, or your own on-premises relay service. Please check if you are using a relay service for your email. If not, you must configure your application to use one. see- https://learn.microsoft.com/en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity
If already using- try below steps to troubleshoot-
- Check if the SMTP server is up and running, try to connect to it using a telnet client. If the connection fails, the SMTP server may be down or there may be a network problem.
- See if the SMTP server settings in your web app are correct, verify that the SMTP server address, port number, and credentials match the ones provided by your SMTP service.
- If there are any firewall rules or network security groups that block outbound traffic from your web app to the SMTP server, look at the network security group rules for your web app and make sure they allow the SMTP port.
- If you are using a third-party SMTP service, make sure that you have configured it correctly and that your web app has permission to use it.
Suggest you to refer this detailed blog on How to fix SMTP problems and send emails from Azure web apps
Let us know, if issue remains.