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.
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.
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.