Hi @tapan gupta ,
Hope you are doing well,
To send email with Graph API in Python you can use MSAL for Python to achieve the same. You need to provide Application Permissions to Microsoft Graph while registering your application instead of using Delegated permissions and required to provide an Admin Consent to required permissions to make it work.
In your python code you need to pass account parameter as none like acquire_token_silent(config["scope"], account=None) as you are required to get token for the client and you do not need to provide the redirection URI. Refer
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.