Question

4
Replies
2857
Views
Marc-AntoineN Member since 2012 10 posts
Capgemini
Posted: 4 years ago
Last activity: 4 years 7 months ago
Closed
Solved

sending messages with inline images

Hi,

We are on Pega 7.1.9.

We are trying to send emails that have a body filled up by users. They are able to add an image in the body, which is displayed in a rich text box.

but the new control for rich text boxes is putting links to content inside Pega so, once it is send it is still content to Pega and therefore not displayed on client mail software of recipients.

After long researches on internet and mesh, it seems images in emails should be put in attachments and referenced by a cid:UniqueID in the src of the img content inside the html of the body. Or it is possible to encode in base64 the content of the image and put it in the email, no my preferred solution

It seems it is what Pega is doing since 7.1.8 on email received but there is nothing to send email like this.

We are in a special case where we use Exchange webService to connect to an exchange server to receive and send emails. So we also have an issue in received emails to handle the images.

Has anyone already faced this issue, and may be found a solution ?

I have no difficulty to handle the EWS api so I know how to get or set attachments, including how to flag them as inline attachments, the issues are how to deal in pega for :

  • Display links to images that are stored as Data-WorkAttach-File objects for inbound emails (little issue will be to parse the bode to look for all img content but that should not be a big deal)
  • Download content added by users to move them to attachments with a unique Id.

I would really appreciate your help

Regards

Data Integration
Moderation Team has archived post
Share this page LinkedIn