Been banging my head against this one for a while now, and all the forum posts I've read are old enough that either the settings in osTicket have changed, or microsoft has changed the requirements for connecting to office 365.
After setting up an email address, configuring the server settings and oAuth, when I try to send a message in diagnostics, it fails, and the server logs come back with the "Unable to email via Sendmail Unable to send mail: mail(): SMTP server response: 451 5.7.3 STARTTLS is required to send mail" message.

I've gone through the php.ini settings, and there isn't much in there that I can see either.
[mail function]
; For Win32 only.
; https://php.net/smtp
SMTP = outlook.office365.com
; https://php.net/smtp-port
smtp_port = 587
smtp_ssl=tls
I'm running osTicket 1.18.2 on IIS with php 8.4.6
Anyone have any ideas?