I made this small UDF for the Swithmail program because I just can't find any working Autoit code which can use a office 365 account.
This is a UDF based on the small commandline Swithmail (549KB) program.
SwithMail is an application that allows you to send SSL/TLS SMTP
It can send mail via SMTP/Gmail/Office 365 (as far as I know no other AutoIT UDF can do this).
Link to Swithmail website https://www.tbare.com/software/swithmail/
In the zipfile example there Swithmail program in