There are no plans to add Oauth2 to the Poistie extender. In order to do that you, the scriptwriter, would have to submit a compiled script to MSFT for approval. If you did get approval, you would need to pay MSFT a monthly or yearly fee for the privilege. ILC LLC gets around the problem by using another email provider for sending script-generated email messages. It is not very expensive, is not Gmail, and uses several international standards like DMARC on its SMTP servers. Our email sent via this provider has a better rate of acceptance than our email sent using MSFT's cloud-based 365.