Sending Email using Outlook / Office365 with Laravel – Failed to authenticate on SMTP server (Authentication unsuccessful)
Failed to authenticate on SMTP server with username “[email protected]” using the following authenticators: “LOGIN”, “XOAUTH2”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 5.7.139 Authentication unsuccessful, user is locked by your organization’s security defaults policy. Contact your administrator. [SI1PR02CA0057.apcprd02.prod.outlook.com 2024-08-13T03:21:44.729Z 08DCBACDA8334897]”.”. Authenticator “XOAUTH2” returned “Expected response code “235” but got code “535”, with message “535 5.7.3 Authentication unsuccessful [SI1PR02CA0057.apcprd02.prod.outlook.com 2024-08-13T03:21:56.166Z 08DCBACDA8334897]”.”.