138
Views
1
Comments
Convert HTML to Text for Email in ODC
Question

I am facing an issue related to converting HTML to Text for use in OutSystems Document Templates (ODC). I need assistance in finding the best approach to convert HTML content into a suitable format for sending emails through OutSystems applications. 

I am currently working on an ODC project where I need to generate emails dynamically using HTML templates. However, I'm having trouble finding the most effective method to convert HTML content into a format compatible with OutSystems Document Templates for email delivery. I've tried different approaches, but none of them have provided the desired results. 


Here are the challenges I am encountering:

  1. Maintaining the original formatting: When converting HTML to email, it's crucial to preserve the original layout, styles, and formatting of the HTML content in the email.
  2. Handling images and attachments: Some of the HTML templates I'm working with include images and attachments. I need guidance on how to handle these elements appropriately during the conversion process.
  3. Dynamic content: The content of the email needs to be dynamically generated based on user input or data retrieved from a database. I want to ensure that the converted email template can adapt to the dynamic content.

I would greatly appreciate any assistance, guidance, or best practices related to converting HTML to email in the context of OutSystems Document Templates. Additionally, if there are any specific widgets, extensions, or components that could simplify this process, please let me know.


Thank you in advance for your support!

2024-10-09 04-44-30
Bhanu Pratap

Hi Shyam,

You can use CKEditor Forge component for conversion.

This is for Traditional application - CKEditor Traditional 

This is for Reactive application - CKEditor Reactive

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.