A simple component to send email from application as a functional user. For example, sometimes it will be required to send email from application to the recipients with the sender email as "no-reply@example.com".
To achieve this using Azure and MS Graph API, first we need to register an application in Azure AD. Please refer the below URL to know how to do this.
https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/howto-configure-prerequisites-for-reporting-api
Make sure "Mail.Send" API has been granted from MS Graph category in Request API Permissions page.
Steps to configure the credentials:
Hurray!!! it's time to test the app :)
Note: This is a sample app done as part of my learning, so there may not be standard conventions followed for variable names, exception handling, etc. Please feel free to post your feedback so I will try to update in the next versions.