Hi @Veera Anjani Kumar Valivarthi ,
Thanks for reaching out.
I understand you are trying to send email via Azure AD without user's login.
For this you need to first register your application in Azure Active Directory and to get the access token with required permissions to send the mail using client credential flow (which do not require user's login).
To get the permissions in the access token, assign the application permission 'Mail.Send' to your registered application and grant admin consent for the permission.
Use the client credential flow which does not require user interaction to get the access token.
You can validate the access token using jwt.ms to check the required roles.
Then you can use the access token to pass as bearer token in Authorization header to call Graph API endpoint https://graph.microsoft.com/v1.0/users/{userId}/sendMail to send to any email address.
As for SAML2/OpenID, these protocols are used for user authentication. Since you are sending emails without requiring user authentication, you do not need to use SAML2 or OpenID in this scenario.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.