Configure Email (Administrator role)
As an Administrator, you can manage AGILITY's email configuration for sending notifications and communications to members of your organization. Proper configuration ensures that system emails are delivered reliably and securely.
This page explains how to:
Accessing the Email Configuration Page
In the navigation menu, go to Settings and select Applications.
The Applications page will open, displaying all available applications, including the Email Configuration.
Locate the desired application and click the Edit button inside the card.
The Email Configuration page will open, allowing you to view and manage the email settings.
Email Provider Options
AGILITY supports two email providers, SMTP and Microsoft Graph.
Select the option that best matches your organization's email infrastructure:
SMTP — Use an SMTP relay or mail server provided by your organization.
Microsoft Graph — Recommended for Microsoft 365 / Exchange Online environments, especially when SMTP basic authentication is disabled or when your organization uses an approved Microsoft Graph-enabled service account.
Microsoft Graph is selected by default when opening the Email Configuration page. If your organization uses an SMTP server, select SMTP before entering the configuration details.
Available Email Configuration Fields
Common Fields
The following fields are available for both SMTP and Microsoft Graph configurations. These settings define the sender information that AGILITY uses when sending emails and must be configured regardless of the selected email provider.
Enabled — Set to True to enable AGILITY email notifications.
Mail Provider — Select smtp or ms_graph.
Front End URL — The AGILITY front-end URL used for links inside email notifications and reports.
Send to Recipients — When enabled, the email is sent directly to recipients. When disabled, recipients can be placed in BCC for safer testing.
SMTP-Specific Fields
The following fields are required only when SMTP is selected as the email provider. These settings are used to connect AGILITY to your organization's SMTP server and authenticate outgoing email communications.
The following fields are required to authenticate and connect to SMTP:
MAIL From — Email address AGILITY sends from, for example, no-reply@b-yond.com.
SMTP Server — The SMTP server or relay hostname.
SMTP Port — The SMTP port.
Username — The email user name, when credentials are required.
Password — Password for SMTP authentication, when credentials are required.
Start TLS — Set to True to enable Start Transport Layer Security (TLS).
Validate Certs — Set to True to verify the mail server certificate.
Use Credentials — Set to True when the SMTP server requires login credentials.
Microsoft Graph-Specific Fields
Use Microsoft Graph when your organization provides a Microsoft 365 service account or a Microsoft Entra ID application with Graph mail permissions. This allows AGILITY to send emails through an approved corporate mailbox, eliminating the need to configure a separate SMTP relay.
The following fields are required to authenticate and connect to Microsoft Graph:
Mail Provider — Set to ms_graph.
MS Graph Tenant ID — Microsoft Entra ID tenant ID.
MS Graph Client ID — Application/client ID from the Entra ID app registration.
MS Graph Client Secret — Client secret for the app registration. Store and rotate it per your security policy.
MS Graph Sender — Mailbox AGILITY sends from, for example, agility-notifications@example.com.
MS Graph Timeout — HTTP timeout for Microsoft token and sending requests.
MS Graph Login Base URL — Token endpoint base URL. Default https://login.microsoftonline.com unless your tenant uses a sovereign cloud.
MS Graph Base URL — Graph API base URL. Default https://graph.microsoft.com unless your tenant uses a sovereign cloud.
Microsoft Graph Prerequisites
The following needs to be allowed:
Port:
587SMTP Server URL:
smtp.office365.com
An Entra ID app registration exists for AGILITY or for the approved customer service account.
The app has the Microsoft Graph application permission
Mail.Send.Admin consent has been granted for the app permission.
The configured sender mailbox exists and is licensed, or is a valid shared mailbox.
If required by customer policy, configure an Exchange application access policy so the app can only send as the approved mailbox.
Create a Microsoft Entra App
Follow the steps below to create the Microsoft Entra App with the appropriate permissions and settings:
Go to Azure Portal.
Go to your Microsoft Entra ID and search for App Registration, then click New Registration.
Give the application a name, and make sure the Supported account types is set to Single tenant only. Click on Register.
Once the app is created, make sure to save the Client ID and the Tenant ID, as they are needed for the SMTP
Click on Certificates & secrets, then click on New client secret.
Give the secret a name and an expiration time (Recommended is 24 months). Click add.
Once created, you should be able to create the secret value and secret ID and save them in your vault.
Note that the Secret value will show up only once only on its creation and you won’t be able to retrieve it afterwards.
Now go to API permissions and click on Add a permission.
Select Microsoft Graph → Application Permissions → and tick the box for Mail.Send.
This step is not mandatory, but it is preferred.
Click Grant admin consent for YOUR_TENANT, then click on Yes.
You should now see the consent granted properly:
To restrict the application to send as a specific user:
In Exchange Online PowerShell, create a mail-enabled security group containing just the user(s) you want the app to send as:
New-DistributionGroup -Name "AppMailSendScope" -PrimarySmtpAddress AppMailSendScope@yourdomain.com -Type Security
Add-DistributionGroupMember -Identity "AppMailSendScope" -Member targetuser@yourdomain.comCreate the policy, pointing it at your app's Application (client) ID:
New-ApplicationAccessPolicy -AppId <your-app-client-id> -PolicyScopeGroupId AppMailSendScope@yourdomain.com -AccessRight RestrictAccess -Description "Restrict app to specific mailbox"Verify it's working:
Test-ApplicationAccessPolicy -AppId <your-app-client-id> -Identity targetuser@yourdomain.comVerification
After saving, use the email configuration verify action in the Settings UI. For Microsoft Graph, verification should acquire a token and send a test email.
MS Graph — respects HTTP_PROXY, HTTPS_PROXY, NO_PROXY at the application level (httpx with trust_env=True).