We have implemented sending emails via graph api.
In microsoft app https://apps.dev.microsoft.com we have created application and for this application set permission 'Mail.Send'.
For authentication we are using way "Get access without a user".
We are receiving token via this url: https://login.microsoftonline.com/our_tenant/oauth2/v2.0/token and body is looks like this:
"client_id=app_id&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&client_secret=app_secret_key&grant_type=client_credentials"
Mail is sent using this link:
https://graph.microsoft.com/v1.0/users/user_Email/sendMail
In body json with email Object.
When we sent email via this method then receive response code '403' with text "Access is denied. Check credentials and try again."
Before testing it we have created trial account for developed this integration. And with trial account this process have worked perfect.
Could you please help with current problem? Maybe we have forgotten something or have problem with account.
Best regards