An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hi @ManojKumar Dharmar ,
I tested "isReadReceiptRequested" property using Send mail Microsoft Graph API in both Graph Explorer and Postman tool and it is working as expected. You can try using the below equivalent Graph SDK code base by setting up the "isReadReceiptRequested" property at the start of the request body in the code (as shown below).
Microsoft Graph C#.NET SDK ( sample code) :
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var message = new Message
{
IsReadReceiptRequested = true,
Subject = "Email Read Receipt Requested",
Body = new ItemBody
{
ContentType = BodyType.Text,
Content = "Read Receipt Test"
},
ToRecipients = new List<Recipient>()
{
new Recipient
{
EmailAddress = new EmailAddress
{
Address = "******@o365XXXX.onmicrosoft.com"
}
}
}
};
await graphClient.Me
.SendMail(message,null)
.Request()
.PostAsync();
Microsoft Graph JavaScript SDK ( sample code) :
const options = {
authProvider,
};
const client = Client.init(options);
const sendMail = {message: {isReadReceiptRequested: true,subject: 'Email Read Receipt Requested',body: {contentType: 'Text',content: 'Read Receipt Test'},toRecipients: [{emailAddress: {address: '******@o365XXXX.onmicrosoft.com'}}]}};
await client.api('/me/sendMail')
.post(sendMail);
My testing outcome in Postman/Graph Explorer using Send mail Graph API :
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it, so that it will be useful for other community users. If you have any further questions about this answer, please click "Comment".