Please find below the steps for configuring the SMTP service for Microsoft Office 365 accounts.
Settings:
- SMTP Server: smtp.office365.com
- Port: 587
- Username: Your full Microsoft 365 email address
- Password: The password associated with your Microsoft 365 email address
- Enable SMTP in your Office 365 account.
- Ensure that two-step authentication is disabled for your Office 365 account (see this article).