I'd like to send some internal alerts or notifications from my daemon scripts directly to specific email addresses.
I am investigating simple REST API client using Microsoft Graph API, but I am failing to find any example covering this simple scenario.
For daemon apps AFAIK only Client Credentials authentication provider is available.
https://docs.microsoft.com/en-us/graph/sdks/choose-authentication-providers
In this case:
- application-wide Email.Send scope needs to be allowed
- this scope allows to send emails on behalf of anybody !
- because of this broad permission the consent of tenant Admin is required
This broad permission is not acceptable in our company so no way.
I hope I am missing something and there is some way.