I need to send emails using the node-red-node-email node.
In the past I used a Google email and everything worked easily thanks to the "Auth Type" option configured on "Basic".
But now I have to migrate the structure to an office 365 account but I'm really confused on how to use "Auth Type" in "XOAuth2" configuration.
I see that a token is needed but I can't understand where I can get this token from, should I make an hhtp get request to the organization's office365 server? Or am I totally wrong? Could someone give me an implementation example? I couldn't find an example on the web
For O365, you have to register your endpoint as an API endpoint in Azure Active Directory. When you do that, you will get the API tokens you need.
The use of the global cloud platforms like Azure and AWS is not simple and you should, as Andrew says, get support from your Azure/O365 admins since they will, in any case, be the only people permitted to register your API app.