Not able to send Email using graph api

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhilash.kumar.niit
    Senior Member
    • Sep 2024
    • 116

    #1

    Not able to send Email using graph api

    Hi,
    I have purchased the outlook integration package which is working fine. But after the new release i tried to integrate the Graph Api and it has some issues might be a BUG.
    i setup the personal email and group email accounts . when i am sending the test mail from the Personal email account the mail is going but as i try to send mail from the group email account it shows error giving below.

    Error 500
    Outlook Oauth: Error after requesting POST https://graph.microsoft.com/v1.0/me/sendMail; Reason: Access token validation failure. Invalid audience.. Code: 401.

    Error code after clicking the url.

    {"error":{"code":"InvalidAuthenticationToken","mes sage":"Access token is empty.","innerError":{"date":"2025-06-13T06:18:39","request-id":"5e5772b9-5627-425d-b6f3-43cf5e4d1233","client-request-id":"5e5772b9-5627-425d-b6f3-43cf5e4d1233"}}}
  • victor
    Active Community Member
    • Aug 2022
    • 928

    #2
    For using Graph API Mail.Send API permission should be enabled for the Azure application in the Api Permissions tab.

    Click image for larger version  Name:	image.png Views:	0 Size:	55.9 KB ID:	118691
    Additionally about this functionality you can read in official documentation: https://docs.espocrm.com/extensions/...ail/#graph-api.

    Comment

    Working...