Question
Accenture
IN
Last activity: 13 Nov 2024 4:30 EST
HTML to EML conversion
We have a requirmentt where the case is getting created from email channel. we want the emails in Pega to be stored in EML format not in HTML. Any input would help. Thanks in advance
***Edited by Moderator Rupashree to add Capability tags***
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 7 Mar 2024 5:53 EST
Pegasystems Inc.
IN
@abdulr697 HTML format is needed for accurate and performant display of email thread in Email triage cases. If you remove email html file, UI will be distorted.
Pegasystems Inc.
GB
@abdulr697 please clarify your incoming emails - are these not already eml?
Conversion of .eml files to .msg
Save outbound emails as .eml files in Data-WorkAttach-File
In Pega, when an email is received through an email channel, it is processed and used to create or update cases. The email content is translated to the clipboard by service email rules and processed by service activities. If there are any attachments to the email, they are included with the case. The original email content and its related data are stored within the case.
Exploring email configurations > Service email rules and service activities (incomi
Integrating your application with an email provider > Incoming email
Data management and integration > Email
@abdulr697 please clarify your incoming emails - are these not already eml?
Conversion of .eml files to .msg
Save outbound emails as .eml files in Data-WorkAttach-File
In Pega, when an email is received through an email channel, it is processed and used to create or update cases. The email content is translated to the clipboard by service email rules and processed by service activities. If there are any attachments to the email, they are included with the case. The original email content and its related data are stored within the case.
Exploring email configurations > Service email rules and service activities (incomi
Integrating your application with an email provider > Incoming email
Data management and integration > Email
Configuring email listener processing
Accenture
IN
@MarijeSchillern pega is storig the mails in html format now. I want it to store in eml format
Accepted Solution
Updated: 7 Mar 2024 5:53 EST
Pegasystems Inc.
IN
@abdulr697 HTML format is needed for accurate and performant display of email thread in Email triage cases. If you remove email html file, UI will be distorted.
Pegasystems Inc.
IN
@abdulr697 could you also explain why you want to do that so we can suggest alternative approaches?
It Offshore Support
IN
To convert emails from HTML format to EML format, you can follow these steps:
-
Extract HTML Content: Start by extracting the content of the email from its HTML format. You'll need to parse the HTML and retrieve the relevant components such as sender, recipient, subject, body text, attachments, and any other metadata.
-
Create EML Structure: EML (Electronic Mail Format) is a standard format for email messages. You'll need to create a new file with the ".eml" extension and populate it with the extracted email content. The EML file follows a specific MIME (Multipurpose Internet Mail Extensions) structure, which includes headers and body parts.
-
Set EML Headers: Populate the EML file with headers such as "From", "To", "Subject", "Date", and any other relevant metadata. Ensure that these headers accurately reflect the information extracted from the HTML email.
-
Convert HTML Body to Plain Text or MIME Format: In the EML file, the body of the email can be represented as plain text or in MIME format. If the HTML content includes formatting, images, or other rich media, you'll need to convert it to MIME format and include appropriate MIME headers.
To convert emails from HTML format to EML format, you can follow these steps:
-
Extract HTML Content: Start by extracting the content of the email from its HTML format. You'll need to parse the HTML and retrieve the relevant components such as sender, recipient, subject, body text, attachments, and any other metadata.
-
Create EML Structure: EML (Electronic Mail Format) is a standard format for email messages. You'll need to create a new file with the ".eml" extension and populate it with the extracted email content. The EML file follows a specific MIME (Multipurpose Internet Mail Extensions) structure, which includes headers and body parts.
-
Set EML Headers: Populate the EML file with headers such as "From", "To", "Subject", "Date", and any other relevant metadata. Ensure that these headers accurately reflect the information extracted from the HTML email.
-
Convert HTML Body to Plain Text or MIME Format: In the EML file, the body of the email can be represented as plain text or in MIME format. If the HTML content includes formatting, images, or other rich media, you'll need to convert it to MIME format and include appropriate MIME headers.
-
Handle Attachments: If the HTML email contains attachments, you'll need to include them in the EML file as MIME parts. Each attachment should be encoded and specified with the appropriate MIME type in the EML file.
-
Save as EML File: Once you've constructed the EML file with the converted content, save it with the ".eml" extension. The file should now be in the EML format and can be stored or processed accordingly.
Keep in mind that converting HTML emails to EML format involves handling various components and adhering to the MIME standard. You may need to use programming libraries or tools to assist with the conversion process, depending on your development environment and requirements. Additionally, consider edge cases such as handling inline images, character encoding, and preserving the integrity of the original email content during conversion.
Instellars
IN
@KhanZ17085271 Could you please update the process with step-by-step instructions?