Issue is entire Email Body is getting displayed in html. Even though all the necessary settings are configured in Email-Listener and Service rule to handle the Email body in plain text. This is only happening production environment. All other lower environments are working fine. Code base of UAT and Production are verified and found to be in sync. Please suggest any possible reasons for this behavior?
***Updated by moderator: Lochan to close post*** This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
If you have your exchange administrator compare the settings for the mailbox(es) you are accessing in Prod vs. your other environments, the "Message MIME Format" in the "Retrieval Settings" section (#7 in the TechNet document) will probably be different. It sounds like you have this setting set to "HTML" in production when you want either "Text" or "HTML and alternative text".
Formats are to be retrieved set as "BestBodyFormat" for all the environments. The Best body format retrieval option represents the native content of a message that is stored on a server that is running Microsoft Exchange (as mentioned in technet). Attached is a sample Email body content as it shows up.
I tried using control "RichTextDisplay" but still showing value in html.
Hi Chandra, Can you add DEBUG on "com.pega.pegarules.integration.engine.internal.services.email.EmailListener" class and send the PegaRULES logs after you rerun the scenario, this will give us more insight on what is happening behind the scene. We would also need screen shot of what you are seeing. Regards, Adi
The issue found to be the configuration at Exchange server end. In production Content-Type was set as text/html, hence the entire e-mail body was getting stored as HTML. But in other lower regions Content-Type was set as multipart/alternative, so the text part was getting extracted from HTML body.