Hi @Sajith Gopalakrishnan Hema
The https://graph.microsoft.com/v1.0/me/micrsoft.graph.sendmail
is not a valid API endpoint, if you want to call the graph API to send email, the correct endpoint should be:
POST https://graph.microsoft.com/v1.0/me/sendMail
Content-type: application/json
{
"message": {
"subject": "Meet for lunch?",
"body": {
"contentType": "Text",
"content": "The new cafeteria is open."
},
"toRecipients": [
{
"emailAddress": {
"address": "******@contoso.onmicrosoft.com"
}
}
],
"ccRecipients": [
{
"emailAddress": {
"address": "******@contoso.onmicrosoft.com"
}
}
]
},
"saveToSentItems": "false"
}
You can put your access token in the Authorization parameter:
Send mail:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".