Skip to main content
Skip table of contents

Creating Microsoft Outlook (Office 365) Microsoft Graph credentials for email sending

To allow CourseCo to send emails through Microsoft 365 using Microsoft Graph, your Microsoft 365 / Entra administrator needs to create an app registration in Microsoft Entra ID, generate a client secret, and grant the correct Microsoft Graph permission. For app-only sending, the main permission typically required is Mail.Send under Application permissions. Microsoft Graph app access is controlled through Microsoft Entra app registration and consent.

Below user guide was taken from Microsoft

This guide explains how to configure a Microsoft Entra application so CourseCo can send emails through Microsoft 365 using Microsoft Graph.

An administrator in your Microsoft 365 tenant must complete these steps and provide the required credentials to CourseCo.

Information we will require from you once setup is complete:

  • Tenant ID

  • Client ID (Application ID)

  • Client Secret Value

  • Sender mailbox email address

Step 1 — Register a new application

  1. Sign in to the Microsoft Entra admin center: https://entra.microsoft.com

  2. Navigate to Identity > Applications > App registrations

  3. Select New registration

  4. Enter an application name such as CourseCo Email Integration

  5. For Supported account types, leave as Accounts in this organisational directory only (Single tenant)

  6. Select Register

Once created, you will see the Application (client) ID and Directory (tenant) ID on the Overview page. These will be required later.

Step 2 — Add the CourseCo redirect URL

CourseCo requires a redirect URL so Microsoft can return the authentication response during setup.

  1. In the app registration, open Authentication in the left menu

  2. Select Add a platform

  3. Choose Web

  4. Enter the following Redirect URI:

https://yourdomain.courseco.co/admin/messaging/oauth_set
or
https://yourdomain.com/admin/messaging/oauth_set

Do not add ‘courseco.co/’ to the domain, if you do not have this in your current CourseCo platform.

  1. Select Configure or Save

Important: The redirect URL must match exactly as shown above or authentication will fail.

Step 3 — Create a client secret

  1. Open the app registration

  2. Go to Certificates & secrets

  3. Select New client secret

  4. Add a description such as CourseCo Integration

  5. Choose an expiry period based on your organisation’s security policy

  6. Select Add

Immediately copy the Secret Value and store it securely.

Important: Microsoft only shows the secret value once. If it is lost, a new secret must be created.

Step 4 — Add Microsoft Graph permissions

  1. In the app registration, open API permissions

  2. Select Add a permission

  3. Choose Microsoft Graph

  4. Select Application permissions

  5. Search for and select Mail.Send

  6. Select Add permissions

This permission allows the application to send emails via Microsoft Graph.

Step 5 — Grant administrator consent

After adding the permission:

  1. In API permissions, select Grant admin consent for your organisation

  2. Confirm the action

Admin consent is required before the integration can send emails.

Step 6 — Confirm the sending mailbox

Please confirm the Microsoft 365 mailbox address that CourseCo should use to send emails, for example:

training@yourcompany.com

This mailbox must exist in your Microsoft 365 tenant.

Once the setup is complete, Login to CourseCo, have the below info ready

  • Tenant ID

  • Client ID (Application ID)

  • Client Secret Value

  • Sender mailbox email address

To add details to CourseCo:

  1. Login as Admin

  2. Open messaging > Down the middle icons, select ‘Microsoft Graph Setup’ or add /admin/messaging/custom_settings/email-microsoft_graph to the end of your domain.

  3. Enter the client id, client secret ad tenant id

  4. select continue

  5. You will be redirected to Microsoft and must verify the connection

Screenshot 2026-03-11 at 08.44.25.png

Last checks to confirm all is configured correctly

First, confirm the Graph permission is correct.
In Microsoft Entra → App registrations → API permissions, the app should show:

  • Microsoft Graph

  • Mail.Send (Application)

  • Admin consent: Granted

If consent is missing, the integration will authenticate but email sending will fail.

Second, verify the sender mailbox exists and is licensed.
The mailbox you configure (for example training@company.com) must:

  • exist in Microsoft 365

  • be an Exchange Online mailbox

  • have an active license

Shared mailboxes can work, but some tenants restrict app-only sending from them.

Third, confirm the app is allowed to send mail as the mailbox.
Some organisations restrict Graph apps so they can only access specific mailboxes. If that policy is enabled, the mailbox being used must be included in the allowed list. Otherwise the API call will return permission errors.

Fourth, test sending a single test email.
The easiest validation is to send a test message from CourseCo (use quick messaging to do this) and check:

  • the email is delivered

  • the From address appears correctly

  • the message is not blocked or quarantined

If it fails, IT should check Exchange message trace in Microsoft 365 to see whether the message was rejected or filtered.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.