I am able to send the email from my MVC application in my local machine. But when I trying the same after publishing the code in Azure webapps not able to sent it.
Get the following error:
"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required."
I am using gmail.com for sending the mail.

I had already enabled Less secure apps to ON
Please suggest why email functionality working in local machine and not in Azure webapps

Satya KarkiRank #78 · 24.6K reputationPosted Feb 10, 2022, 10:13 AM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Feb 10, 2022, 9:27 AM EST
Hi,
Verify the ssl in your code and it should be enabled.
Rijwan AnsariRank #82 · 24.2K reputationPosted Feb 10, 2022, 10:16 AM EST