admin管理员组

文章数量:1389768

I have an Outlook add-in that does the following

  1. Allow user to compose an email (reply or forward)
  2. From compose window, user clicks my add-in.
  3. The add-in saves the content of the email on an external application, and then sends the composed email (this results to automatically closing the compose window)

Now, to do step 3 above, I am using the EWS function called 'makeEwsRequestAsync'. The problem is makeEwsRequestAsync uses legacy tokens which Microsoft stopped supporting.

I am looking now at alternative approach which is using the Microsoft Graph API.

But looking at Microsoft Graph API, it has an endpoint to send email, but you have to actually create a request to build the email that will be sent. It looks like this is more effective if you want to send an email on behalf of the user from another application, say Word, not Outlook.

How can I actually use MS Graph API in an Outlook add-in. Is there a MS Graph API endpoint that sends the email composed by the Outlook user in the composed window?

本文标签: Outlook addin sending composed email with Microsoft GraphStack Overflow