question

TonyJia-7827 avatar image
0 Votes"
TonyJia-7827 asked GlenScales-6756 answered

Exchange Server retrieve email to html or pdf

Dear Team,

Could you help to guide if any api which could retrieve email to html or pdf?
ps: email including Subject from to cc body attachment

We have a requirement which need to retrieve the email and save it to pdf purpose for archive.

microsoft-graph-mailoffice-exchange-server-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
It seems your issue is more related to API , so I would add microsoft-graph-mail and office-exchange-server-dev tag (and remove Exchange tag) for you.

0 Votes 0 ·

1 Answer

GlenScales-6756 avatar image
0 Votes"
GlenScales-6756 answered

What do you actually need in the PDF ? just the body of the Message ? the MIME Content including the attachments ?

You can use the Graph API to get Body or the Mime Content eg https://docs.microsoft.com/en-us/graph/outlook-get-mime-message

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.