47
Views
5
Comments
Solved
[EWS Email] Images in Email body are being recognized as attachment
ews-managed-api
Service icon
Forge asset by Abdiel Alvin
Application Type
Reactive
Service Studio Version
11.54.12 (Build 62475)

Hi everyone,

I'm using EWS Email to read mail inbox and getting said mail attachments and it works fine at first.

The problem is when retrieving the list of attachments using the GetEmailFromInbox function, the extension is fetching all the images in the body email as attachment too.

Is there any way to solve this? Any kind of advice would be greatly appreciated! 


UserImage.jpg
Dawn_
Solution

Hi, decided to update this post in case anyone looking for similar solutions. we ended up modifying the source code for the extension to get the IsInline property of attachments provided by the EWS library.

2023-07-04 22-25-22
Mohamed Medhat

Hi @StillLearning , did you check to embed the image in html <img src="cid:image"> , you can set the content-Id, I am not using EWS Email but in general you need to find a way to to do that  

UserImage.jpg
Dawn_

Hi Medhat,

Sorry for the late reply.
I'm not sure if I understand your suggestion correctly. But how do I set the embedded image content id since I am the one receiving the email, and not the one sending it?

My requirements need me to retrieve only the images attached at the email, and ignore those in the body email.

Thanks for the response!

2023-07-04 22-25-22
Mohamed Medhat

Hi @StillLearning , yes you can just view the attached images 

<img src="cid:emailSign.jpg" alt="Email Sign">

Best

UserImage.jpg
Dawn_

Hi Medhat,

Would it be possible for you to share an example oml? Thanks!

Regards,
StillLearning

UserImage.jpg
Dawn_
Solution

Hi, decided to update this post in case anyone looking for similar solutions. we ended up modifying the source code for the extension to get the IsInline property of attachments provided by the EWS library.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.