PHPMailer 是一款流行、功能齐全的 PHP 电子邮件发送库
This project is a very basic demo showing how to authenticate with OAUTH2 and send an email message for gmail, microsoft/office365 as well as hotmail.com/outlook.com/live.com email addresses.
Solution to continue sending emails from PowerShell 5.1 script with "Modern Authentication" when Exchange online Basic Auth is disabled
imap server proxying access to another imap server with oauth2 authentication
Modified version of PHPMailer
Office 365 IMAP/POP3 OAuth