Hi,
I'm not sure if it's supported as the official doc of Odoo indicates: Office 365 email servers don’t easily allow to send external emails from hosts like Odoo. Refer to Microsoft’s documentation to make it work.
Follow these guidance to set up the mail flow:
How to set up a multifunction device or application to send email using Microsoft 365 or Office 365
How to Configure Emails to work with Office 365 and Odoo
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.