Nope, it was because I was doing the OAuth bit with my Admin account, and not the account that was going to send the email!
I think I have got things moving. Within the App Registration, under API permissions, and under “Other permissions granted for Portman Dental Group”, I then added those to configured permissions. And I think that did it? Either that or it just took ages for it to start working.
Hi,
Thanks for getting back. I started again from scratch following the video. I’m still getting the same error. It did occur to me that I’m accepting the OAuth request from my admin user, not the user that would send the email. Would that make a difference?
Cheers
Hi,
This sounds like a similar problem I have. The log says:
Client error: POST https://graph.microsoft.com/v1.0/me/sendMail
resulted in a 403 Forbidden
response:
{“error”:{“code”:”ErrorSendAsDenied”,”message”:”The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit message.”}}
I believe I have the correct permissions on the app?