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

Incoming email parsed as raw HTML



Email listener is not processing the incoming email correctly. Listener displays an incoming message as raw HTML. This issue occurs when using Exchange Server 2010.

Error Messages

No error message in the logs, but in the screen capture below the incoming email is displayed as raw HTML.

Steps to Reproduce

Send an email to a Pega email listener using Microsoft Exchange 2010.

Root Cause

The root cause of this problem is defect/misconfiguration in the operating environment. In EmailListener issues always add DEBUG to "" class and review the PegaRULES logs for anomaly. In this case the issue was with the wrong “Content-Type” set in the email header by the Exchange server. The incoming email had two MIME parts, i.e. text and html and the Content-Type was being set "text/html".
If incoming has multiparts, i.e. text and html always use Content-Type=mulitpart/alternative or multipart/mixed.

Also make sure the 
control that is used to display the incoming messages is set to RichTextDisplay.


This issue is resolved by making the following change to the operating environment: Configure Exchange server to set Content-Type to "mutipart/alternative" for outgoing messages and change the control to "RichTextDisplay".

Published July 6, 2015 - 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