Title:
Unable to send email using Microsoft Graph API with personal account — 401 APIError
Body:
Hi, I'm trying to send an email from my personal Microsoft account using the Graph API. Here's what I've done so far:
Added my personal email to the Azure AD tenant via my app registration
Granted the required permissions (Mail.Send, User.Read, etc.)
Successfully signed in using AuthorizationCodeCredential
However, when I try to send the email, I get the following error: kiota_abstractions.api_error.APIError: APIError Code: 401
Message: The server returned an unexpected status code and the error registered for this code failed to deserialize: <class 'NoneType'>
Has anyone faced this issue before? Is there something specific I need to configure for personal accounts to send mail via Graph API?
Any help would be appreciated. Thanks!