535, b"5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator
We have created a email ID ******@recloudconsulting.com as a SMTP service credentials to deliver a OTP to email address
Below are the configurations in Azure app functions.
STMP server: smtp.office365.com
Port is 587
User name is "******@recloudconsulting.com"
We are getting below errors Failed to send email: (535, b"5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator. [BN9PR03CA0191.namprd03.prod.outlook.com 2025-04-21T14:55:09.998Z 08DD80D01ABE7C04]") Error processing message: Error in the module send_email: (535, b"5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator. [BN9PR03CA0191.namprd03.prod.outlook.com 2025-04-21T14:55:09.998Z 08DD80D01ABE7C04]"
I did removed the MFA for email ID ******@recloudconsulting.com from the organization default policy.
Please let me know if you need any more details.