Custom SMTP
Last updated
Last updated
To use OAuth2.0 authentication to access the SMTP server using the Microsoft Graph API, the Ultimo application must be registered with Microsoft Entra ID and granted specific permissions.
Applicable Ultimo version: Rolling Release (Azure cloud)
Go to the and sign in. This account must be in the same directory as the account that will be used to access Exchange Online.
Select Microsoft Entra ID and then select Manage > App Registrations in the left side menu.
Click on New Registration and use the following values:
Enter a Name for the application
For Supported account types choose Accounts in this organizational directory only
For Redirect URI choose Web and enter the following value based on your situation (note: the URI is case sensitive):
{UltimoEnvironment}/OAuth2Callback
where {UltimoEnvironment}
is the domain where Ultimo is hosted.
Example: https://customer.ultimo.net/OAuth2Callback
Click Register. Then copy the value of the Application (client) ID and the Directory (tenant) ID and save it. This will be needed later.
Select Certificates & secrets in the left side menu and click New client secret. Enter a description and click Add.
Copy the value of the added client secret and save it.
Select API permissions in the left menu and select Add permission.
select Microsoft Graph.
Select Delegated permissions and then choose SMTP.Send under SMTP.
Select Add permissions.
The application that was registered in the previous steps can be used to create a credential in Ultimo.
Go to the UCTool and select Credentials under Authorisation.
Click on the plus icon to create a new credential and use the following values:
Enter an Id and Description for the credential
For Grant type choose Authorization Code
For Authorization URL enter
https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/authorize?prompt=select_account
where {tenant-id}
should be replaced with the Directory (tenant) ID that was copied in the previous steps
For Access token URL enter
https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token
where {tenant-id}
should be replaced with the Directory (tenant) ID that was copied in the previous steps
For Client Id enter the value of the Application (client) ID that was copied in the previous steps
For Client secret enter the value of the added client secret that was copied in the previous steps
For Scope enter the following value:
https://outlook.office.com/SMTP.Send offline_access
Click on the save icon.
Click on the key icon in the toolbar to get an access token.
You will be redirected to the Microsoft login screen. Sign in with the account that will be used to authenticate with Exchange Online.
You will be redirected back to Ultimo.