I'm getting error when setting up the SMTP with OAuth2 authentication same as remote mailbox for O365 and getting error Bad sequence of commands below.
Osticket ver 1.18.2 Apache 2.4.58 MySQL 8.0.41 PHP 8.1.32 OAuth2 client plugin ver 0.6
There is no issue saving for incoming mailbox and I can see the OAuth2 Authorization token scopes below https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/Mail.ReadWrite https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send https://outlook.office.com/User.Read
Is there anyone encounter same issue and appreciate can share workaround resolution?
Davidleecs
Cheers.
KevinTheJedi
Thanks for sharing these info. I've follow your advices, updated the to latest PHP 8.4, remove Mail.ReadWrite scope and reauthorize the email but still getting same error Bad sequence of commands.
Then the only thing I can think of is your hosting provider is blocking/restricting external SMTP.