I followed this documentation to download the attachments of email.
Below is the API response.
If email attachment type is FileAttachment
, I am able to get the file content in api response and able to save the attachment.
If email attachment type is ItemAttachment
, I am not able to get the file content in api response. When I googled for it, I found this stack overflow question. I used the rest API mentioned in the answer. But it's giving itemAttachment
content in html format. And if that ItemAttachment
has any fileattachment
in it, then I am unable to access it.
Is there any API available to download the itemAttachment
as .eml
file not as html?
Any suggestion/answers would be more than welcome.