Microsoft on-premises server product that runs Office Online.
Hi Surekha Yeddula,
Thank you for posting your question in the Microsoft Q&A forum.
After researching, the behavior is as Q&A Assist mentioned: the sendMail API does not support specifying a target mailbox folder.
Besides the multi-step workaround (send first, then locate/move), you may consider a shorter alternative if all recipient mailboxes are internal within the same tenant and you’re able to manage those mailboxes via Microsoft Graph: you can create a message item directly in a specific folder.
That said, it’s important to clarify the tradeoff: this approach creates a message item in the mailbox folder rather than delivering a message through the normal mail transport pipeline. Because of that, Microsoft documentation does not state or guarantee it will trigger the same “new mail delivered” push/toast notification behavior as a real inbound email.
However, it can still appear as unread in that folder if you ensure the message is marked unread (for example via the message’s isRead property), and the folder has an unreadItemCount concept that Outlook clients use to show unread counts when the user views that folder.
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.