Sending Email from O365 SMTP Server

Hello,

Could you please kindly help with the inability to send emails from O365 SMTP Server. I got the error message "Authentication unsuccessful".

I use the same password for  my account page of office 365 (Outlook) and for SMTP password on OutSystems Service Center. 

The error "Authentication unsuccessful" comes from office 365, as I see. So what settings should be changed in Outlook?



Thank you!

I got it working using Microsoft Graph API. It uses authentication token (bearer), then it will check user GUID and finally create e-mail over REST API. I use Graph API also to create calendar events and meetings.

Microsoft Graph API