Configure Microsoft 365 Email
Use this guide when Notification Settings is set to Microsoft 365. An IT admin creates an app in Microsoft Entra ID so ArdentaxIT can send notification email as a mailbox in your tenant.
1. Register an application
Open the Microsoft Entra admin center and go to Identity → Applications → App registrations → New registration.
Name the app (for example
ArdentaxIT mail).Supported account types: Accounts in this organizational directory only.
Leave the redirect URI empty. This setup uses an application secret, not a user sign-in redirect.
Register the app and copy Application (client) ID and Directory (tenant) ID.
2. Create a client secret
Open the app → Certificates & secrets → New client secret.
Copy the secret value immediately. Entra shows it only once.
Paste Tenant ID, Client ID, and Client Secret into Notification Settings.
3. Grant Mail.Send
Open the app → API permissions → Add a permission → Microsoft Graph → Application permissions.
Add Mail.Send.
Select Grant admin consent for the tenant.
Application Mail.Send lets the app send as a mailbox. Delegated Mail.Send is not enough for this setup.
4. Allow the app to send as the mailbox
Exchange Online still needs an application access policy, or send attempts fail even after admin consent.
Connect to Exchange Online PowerShell.
Create a mail-enabled security group that contains only the mailbox in From Email.
Restrict the app to that group:
New-ApplicationAccessPolicy -AppId "<client-id>" -PolicyScopeGroupId "<group-email>" -AccessRight RestrictAccess -Description "ArdentaxIT notification mail"Confirm the policy. It can take up to an hour to apply:
Test-ApplicationAccessPolicy -Identity "<from-email>" -AppId "<client-id>"The result should grant access for that mailbox.
5. Test in ArdentaxIT
Open the developer dashboard → Settings → Notification Settings.
Turn on Use custom mail server.
Set From Name and From Email to the mailbox allowed above.
Choose Microsoft 365 and save the Tenant ID, Client ID, and Client Secret.
Choose Test Connection.
ArdentaxIT sends a test message to the signed-in user's email address. If Microsoft returns ErrorAccessDenied or MailboxNotEnabledForRESTAPI, the permission, admin consent, or application access policy is incomplete. The settings page shows that error so you can correct it without contacting support.
Microsoft Graph accepts a message of about 4 MB, including attachments. A larger invoice PDF is not sent through Microsoft 365. SMTP does not use this limit.
