Configure the external SMTP server settings for Microsoft 365
Learn how to configure external SMTP server settings for Microsoft 365.
- Navigate to Extension Studio > Events & Notifications in the left navigation menu.
- Click the Settings tab.
- In the Email Settings section, click Edit in the External SMTP tab.
- Fill in the fields with the values in the following table. For more information about these fields, see Configure external SMTP server.
Field Value Note SMTP Server Name smtp.office365.com SMTP Port 587 SMTP Enable StartTLS true Authentication OAuth 2.0 SMTP User Name <username> Username of the logged-in user in Azure AD when the OAuth access token is generated.
Ensure that your Azure AD user account is only assigned to limited groups. Otherwise, the size of generated access tokens grows and might cause errors. For more information, see Prerequisites in Create an OAuth 2.0 Provider using the Authentication Code grant type.
OAuth2.0 Provider <oauth 2.0 provider> From the dropdown list, select the OAuth 2.0 provider created for Microsoft. SMTP SocketFactory Port (leave blank) SMTP SocketFactory Class (leave blank) SMTP SocketFactory Fallback (leave blank) - Click Test Connection And Save. The data is saved if the connection is successful.If an error occurs, it suggests that the configuration information is not valid and a corresponding error message appears. For more information about error messages and resolutions, see Common error messages and actions.
- Click Edit in the Email Settings section.
- From the Deliver E-Mail Notifications Using list, select External SMTP Server.
- Click Save.