Question
P3Fusion
P3Fusion
IN
P3Fusion
Posted: Sep 4, 2024
Last activity: Jan 9, 2025
Last activity: 9 Jan 2025 10:37 EST
Closed
Solved
How to Show .eml attachment (Inbound Email Attachted in case) in Modal Dialog
Hello Everyone,
We have the email listener configured, The inbound email is attached as eml for in the case. Is there a way to show that email content in modal-dialog or a section
Design Suggestions are welcome
Cheers,
Matheswaran
@MatheswaranRavi
To display the content of an inbound email that is attached as an .eml file in a modal dialog or a section you can follow these steps: 1. Handle HTML Content: Ensure that the 'Handle html content' setting on the Request tab of the service rule is set to 'inline prefer html'. This will get the HTML content in the email body as is. 2. Embed Data for Inline Images: In the Data options section of the email listener processing select 'Embed data for inline images into HTML'. This will ensure that inline images are rendered correctly when the email is processed as HTML. 3. Save Original Email: Ensure that the email listener is configured to save the original email in EML format. This can be done by selecting the 'Save original email (in EML format)' option on the Process tab of the Email Listener. 4. Display in Modal Dialog: To display the email content in a modal dialog you can create a section that reads the .eml file and renders its content. You can then configure a button or link to open this section in a modal dialog. 5. Use MIME Object: If you need to convert the .eml file into a MIME object for better handling you can refer to examples on how to convert .eml files into MIME objects. By following these steps you should be able to display the email content in a modal dialog or a section within your Pega application.
@MatheswaranRavi
To display the content of an inbound email that is attached as an .eml file in a modal dialog or a section you can follow these steps: 1. Handle HTML Content: Ensure that the 'Handle html content' setting on the Request tab of the service rule is set to 'inline prefer html'. This will get the HTML content in the email body as is. 2. Embed Data for Inline Images: In the Data options section of the email listener processing select 'Embed data for inline images into HTML'. This will ensure that inline images are rendered correctly when the email is processed as HTML. 3. Save Original Email: Ensure that the email listener is configured to save the original email in EML format. This can be done by selecting the 'Save original email (in EML format)' option on the Process tab of the Email Listener. 4. Display in Modal Dialog: To display the email content in a modal dialog you can create a section that reads the .eml file and renders its content. You can then configure a button or link to open this section in a modal dialog. 5. Use MIME Object: If you need to convert the .eml file into a MIME object for better handling you can refer to examples on how to convert .eml files into MIME objects. By following these steps you should be able to display the email content in a modal dialog or a section within your Pega application.
⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.
Configuring email listener processing
How to Inbound Email, Embedded attachments Display in Review Screen
Exploring email configurations > Email listeners (incoming email)
How to attach an inbound email to the work object?