Last updated:
SMTP
Under Platform → SMTP you configure the mail server(s) the platform uses to send emails. This page describes how to set up OAuth2 authentication for Microsoft Exchange, which is the recommended way to connect to Exchange Online.
Create an app registration on Azure
Section titled “Create an app registration on Azure”- Sign in to the Azure portal and go to App registrations.
- Select New registration.
- Enter a name. This name is shown to users when they configure the SMTP server.
- Choose the applicable supported account type.
- Add a redirect URI in the following format:
https://{yourURL}/platform/shareddata/connectiontoken/ - Select Register to create the app registration.
Edit the API permissions
Section titled “Edit the API permissions”- In the Azure portal, go to API permissions.
- Select Add a permission.
- Select Microsoft Graph, then Delegated permissions.
- Enable the following permissions:
EmailOffline_accessSMTP.Send
Grant admin consent
Section titled “Grant admin consent”- On the API permissions tab, select Grant admin consent for {tenant}.
- Confirm the admin consent.
- Each permission should now show the status Granted for {tenant}.
Gather the required values
Section titled “Gather the required values”To configure the SMTP server, you need:
- Tenant ID: found under Overview as “Directory (tenant) ID”.
- Client ID: found under Overview as “Application (client) ID”.
- Client secret: created under Certificates & secrets. Select New client secret to create one (we recommend an expiry of 24 months). Copy the secret value immediately, as it cannot be viewed again after you leave the page.
Create a new SMTP server
Section titled “Create a new SMTP server”- Open the Any2Info platform and go to Platform → SMTP.
- Select the + button to create a new SMTP server.
- Choose the Microsoft OAuth2 option.
- Fill in the tenant ID, client ID, and client secret gathered above.
- Select Set token, then sign in and accept the access request.
- Select Validate connection to confirm the setup works.
- Select Save to save the SMTP server.
Send a test mail
Section titled “Send a test mail”Select the mail icon next to the SMTP server to send a test email and confirm it’s working correctly.
Configure settings to use the new server (optional)
Section titled “Configure settings to use the new server (optional)”Open Settings in the Any2Info platform, and for every mail-related setting, make sure the correct SMTP server is selected.