Search code examples
outlookexchangewebservicesoutlook-addinoutlook-web-addinsoutlook-restapi

get mail as a file in outlook angular plugin to send it to server


I am working on a Angular plugin for outlook, we have a functionality to create a opinion based on the mail. for this we need to add the mail itself as a attachment to the form(A form for opinion creation) while creating the opinion and posting to our server.


Solution

  • You can use EWS (makeEwsRequestAsync API) with the GetItem operation, or use REST API to obtain the item from the server. This will give you all the properties of the item. You can send this information to your backend and use it as needed. If that doesn't satisfy your needs, then please add a feature request to our UserVoice page. Feature requests on our UserVoice page are considered, when we go through our planning process.