Who manages your 365 instance? Can you request the token config from them?
I've given up with O365 TBH but reading this post you need to get the token using the node-red-contrib-oauth2 (node) - Node-RED node.
I moved to SMTP2GO by the way - it way more manageable and does not impact any 'normal' mail accounts.