Getting an auth error SMTP Office365, symfony
Hello, I can't use SMTP Office365, I set up an application account to send emails in my symfony application, I followed the advice from this page, all needed permissions are enabled and disabled Security Defaults (advice from the answer) https://answers.microsoft.com/en-us/outlook_com/forum/all/getting-an-auth-error-i-need-help/b26708fd-14a9-41d5-902d-13a986e9c77c ,I get token, but when I am trying to send the email I get the error Failed to authenticate on SMTP server with username "******@testCompany826.onmicrosoft.com" using the following authenticators: "LOGIN", "XOAUTH2". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 5.7.3 Authentication unsuccessful [BEXP281CA0017.DEUP281.PROD.OUTLOOK.COM 2024-10-24T13:51:39.137Z 08DCF399205B257C]".". Authenticator "XOAUTH2" returned "Expected response code "235" but got code "535", with message "535 5.7.3 Authentication unsuccessful [BEXP281CA0017.DEUP281.PROD.OUTLOOK.COM 2024-10-24T13:51:49.294Z 08DCF399205B257C]".".