Emails with with embedded image in the body are not visible in outlook

Hi Team,

My requirement is to embed QR image in the email body. PEGA generates QR’s for each case and put into a image content rule.

I tried these approaches but nothing showing the embedded image in the outlook.

Apporach1: Referring with URL

Result: Rendering in the corr attachment but failed to render in web based clients or

outlook.

Reason: The given image path is not global accessable

Apporach2: Referring actual image content

Result: Rendering in the corr attachment but rendering in few web based clients but not outlook.

Reason: Only few web based clients support this and outlook blocks the content.

Apporch3: Mimic image upload via corr rule

When I upload image manually in the corr rule then the image path looks like

This is rendering in outlook body also it is rendering as an attachment in the web based clients.

So I tried to mimic the same approach. Generated QR images /rteImages/ path and exactly mimicked the same img tag but still it is failing to render in outlook and web based clients.

I have seen the below article to generate to use cid in html body but I am not very sure how to add content-id for the attachment.

Version: 7.4

Using OOTB send email shape to send emails.

Your help will be much appreciated.

Thanks,

Satish

This has been resolved as part of support request INC-153513.

Root cause and resolution:

Email clients like Outlook, Gmail and other doesn’t support base64 encoded images.

Use the following snippet to include the images dynamically.

<% tools.putSaveValue(“filename”,tools.getPrimaryPage().getProperty(“.QRFileName”).getStringValue());

%>

Make sure property QRFileName returns only the image name like “one.png” and /qrcode/ is the path and let the classType be Image

@Hoyath

I have a similar requirement and I tried above solution and it did not work. I have created a binary file to store my images and have given the file path as “/webwb/”. Any suggestions on this please.

Pega Version: 7.4

Appreciate any help. Thanks.

Hello @ManasaM2

Did you find a solution? if yes could you please share the exact configuration?

Thank you,

Best Regards,

Imen

Hi @IMENS0687,

Not yet. My requirement is similar to the problem statement mentioned above and I am tried creating binary files in /webwb/ directory and tried accessing them from a paragraph(rich text editor) which is included in a correspondence rule used to send Outbound emails. The outbound email is sent to Outlook servers using SendEmail Rest api and not via functions and this inturn is causing the emails received at Outlook rendering without images.

This is the code snippet of how i am trying to include image to be embedded in the mail.

I tried using pega:refurl and provided the complete path but still the image was not rendering in Outlook.

Appreciate any help to resolve this issue. Thanks.

Regards,

Manasa H M