I have a working version now after making some changes to the email node, and using the node-red-contrib-oauth2 node. I've linked the fork on this thread. Just trying to follow the guidelines before I do a pull request!
The most complicated part of this process by far was the PowerShell component to get the service principles linked up - but at this stage, we don't really have other options. I hope Microsoft realize that we've gone to the other extreme and eventually come to the party to make things a little easier.
For now though, this guide was the most useful. Follow those steps and then check to see if the email node is updated yet. I don't mind you using the one from the fork, but bear in mind that although it's working, it isn't finished yet.