sender = "[email protected]"
I use API https://graph.microsoft.com/v1.0/users/{sender}/sendMail to send Mail
get response :
{"error":{"code":"MailboxNotEnabledForRESTAPI","message":"The mailbox is either inactive, soft-deleted, or is hosted on-premise."}}
What's wrong?