Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hi Maurice
Greetings
Thank you for posting in Microsoft Community.
Generally SMTP authentication does not work well in an environment were MFA is enabled , this could be happening because of that. Kindly refer to the article How to set up a multifunction device or application to send email using Microsoft 365 or Office 365 | Microsoft Docs to view the requirements and limitations of smtp.
Sometimes even after disabling MFA it may still prompt for a code for the user, this could be due to Conditional Access policy that may have been set, that being said kindly try the following:
- In the Azure portal, on the left navigation bar, click Azure Active Directory
- On the Azure Active Directory page, in the Security section, click Conditional Access.
- Go to Microsoft Azure , sign in with a global admin account
- On the Conditional Access page, check the policies and modify them,
Once this is done, test to see if the error still appears.
Looking forward to hearing from you.
Regards,
Momo