I’ve tried everything I cxan find on here and on MS Support but cannnot get SMTP to work.
The error message is always either this (or similar):
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail. Error: 535 5.7.139 Authentication unsuccessful, user is locked by your organization’s security defaults policy. Contact your administrator. [DU7P195CA0004.EURP195.PROD.OUTLOOK.COM 2024-05-30T10:33:41.852Z 08DC8042EE3BD98F]
I’ve an Office 365 Business subscription and have tried enabling Basic Authentication (AUT SMTP) and have run the recommended PowerShell scripts (as an Admin) etc.
Then reading further on the MS website, it stated that MS will completely remove support for any SMTP authentication from 2025 and hence what can QF do to work with the strict MFA (multi-factor Authentication)?
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail. Error: 535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [DB7PR05CA0063.eurprd05.prod.outlook.com 2024-05-30T13:09:53.800Z 08DC80196DEDBC8C]
But the code was a little wrong, and I’ve corrected it here:
(Note each step should be entered and executed separately, and you also have to make sure that the Office 365 Default Security Settings are turned off (see below).)
Microsoft are not disabling support for SMTP, only for Basic authentication. QuickFile would need to make changes on their end in order to support authentication with OAuth2 instead, something that requires a slightly different implementation for each provider - but given the number of people who use the two big providers that are pushing OAuth2 (MS 365 and GMail) it may be worth their while to implement it for those two providers specifically.