Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Image not sent as part of email body

SA-80846

Summary



When adding an image to the Rich Text Editor (RTE) containing special characters (for example, test(1).png), the image is not sent as part of email body. Instead, an 'X' icon displays in mail body.


Error Messages



Not Applicable


Steps to Reproduce

 
  1. Configure an email account.
  2. Add an RTE.
  3. Browse and upload an image which has special character (for example, test(1).png).
  4. Send the mail using the sendSimpleEmail out-of-the-box activity. BatchSend = true or BatchSend=False have the same result


Root Cause



A defect in Pegasystems’ code or rules.


Resolution



Perform the following local-change:

Modify the below code snippet,

if (fileExists) {
match.appendReplacement(updatedMarkup, "$1" + "$4" + "cid:" + originalURL.replaceAll(" ", "_") + "$8");
filesRefrernceSet.add (originalURL);
}




to,

if (fileExists
            {
// match.appendReplacement(updatedMarkup, "$1" + "$4" + "cid:" + originalURL.replaceAll(" ","_") + "$8");

               match.appendReplacement(updatedMarkup, "$1" + "$4" + "cid:");
               updatedMarkup.append(originalURL.replaceAll(" ","_"));
               updatedMarkup.append(match.group(8));
              filesReferenceSet.add (originalURL);
            }

Published August 15, 2019 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us