Hi @nd0911
If you are trying to send mail on behalf of a user in the tenant, then you need to grant the application the Mail.Send
application permission. From the screenshot you shared, apparently you've already done that.
Next step you need to get application token using unattended client credentials flow.
Finally use this token to call the /sendMail graph API to send mail on behalf of the user:
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.