Microsoft OAUTH Settings

Office 365 Account

This is the account for the user that will be sending the emails.

Client ID

This is the Client ID for the application on the Microsoft Exchange Service that has permission to send emails.

Client Secret

This is the Client Secret that was created to identify this application to the client.

Tenant ID

This is the tenant where the Microsoft Exchange Service is hosted.

To configure for the Microsoft Exchange Service, the administrator of the service must create a Service/Daemon app.

Instructions for registering an app suitable for a ClientCredentials flow can be found here:

https://learn.microsoft.com/en-us/graph/auth-register-app-v2

This will allow you to retrieve the values needed. You will also need to make sure that you generate a client secret. This value must be saved when generated as it cannot be retrieved later, and new value would need to be generated.

Once the application has been registered, then it needs to have Microsoft Graph Mail.Send API Permission added. It is important to add this permission as the Application Type.