CFMAIL using OAuth instead of Basic Auth

I have an application which uses CFMAIL to send out alerts and notifications with a O365 mailbox. I’ve been asked to switch it to OAuth 2.0 and I have no experience with sending emails via OAuth and CF. I’m struggling to find any documentation or guidance online and in any of the forums. Is there an easy way to do this with setting up an OAuth connector and still using CFMAIL?