CFMAIL stopped working after CF21 Update 21

CFMAIL has been working up until update 21 and now I receive this error when an email is trying to be sent. I have updated the JVM to the latest version supported for CF21 as well to see if that resolved the issue, but it doesn’t. This is CF21 Update 21 running on Server 2019.  Any thoughts or suggestions would be greatly appreciated. Jul 10, 2025 9:23:27 AM org.apache.catalina.core.StandardWrapperValve invokeSEVERE: Servlet.service() for servlet [CfmServlet] in context with path [] threw […]

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?