Hello,
second day I try to solve problem with oauth2 with office 365...Azure looks like is ok, reading email is OK bud SMTP is not possible to set..
I receiving following errors : Could not open socket: stream_socket_client(): Unable to connect to tcp://outlook.office365.com:587 (Cannot assign requested address)
hostname I try to change from smtp.office365.com to outlook.office365.com authentification MS, Other provider and same as remote mailbox the same problem...
I tried other links like this :
https://howtohelpdesk.com/how-to-setup-oauth-on-osticket-using-microsoft-365/