The SMTP settings for Office 365 (now Microsoft 365) are: SMTP server: smtp.office365.com, Port: 587, Encryption: STARTTLS (TLS), and Authentication: required using your full email address and password. These settings are used to send outgoing email securely from email clients, applications, websites, and devices.
Now let’s explore these settings in detail, explain when to use them... https://blog.oudel.com/what-are-the-smtp-settings-for-office-365-step-by-step-guide/