Support Article
Image missing when email is sent using SendEmailNotification
SA-18131
Summary
SendEmailNotification is directly used to send an email. Correspondence has an embedded image.
When email is sent, the received email misses the embedded image.
This happens only for internal images. If it's an external URL it works fine.
Error Messages
Not Applicable
Steps to Reproduce
1. Create a Correspondence rule and embed an image.
2. Use property-set-corr and assign it to a property.
3. Use this property as Message for SendEmailNotification activity.
Root Cause
A defect in Pegasystems’ code or rules. Unable to encrypt the relative path used to attach image.
<img alt="" src=’webwb/pxPegaBtnUp.png’>
Image tag is rendered as it is in the email and it displays X as it cannot interpret the path.
Resolution
Perform the following local-change:
Use the below path to attach image.
<img alt="" src='<p:r n="pxThread.pxReqHomeURI" m="normal"/>/webwb/pxPegaBtnUp.png'/>
This path will help render the image at runtime as below.
<IMG alt="" src='http://xxx.x.x.x:8631/prweb/PRServlet/FiOHe9YQCM6QY6BPF7j485pCCI3Uu6RJ*/webwb/pxPegaBtnUp.png'/></Prop6>
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.