256
Views
15
Comments
Include clickable link in email template (Crated using CKedior) Reactive application

Hi ,
I have created a email template using CkEditor which contains link and bold styled charaters in Reactive application.
Now while sending email in reactive email i need to convert HTML to text which i have achieved by (HTMLToText server action).But this does not make the text clickable link.
ref. (Link not clickable)

UserImage.jpg
Kay Lun

I think the HTMLToText action is converting your HTML code into text only, which means no HTML code will be compile in the email. I think you could directly insert the data created by CkEditor into the email body, so they will compile as a HTML element.

2024-09-04 05-41-42
Pratap Singh Naruka

@kay lun

I have tried that way 
it gave output like this

UserImage.jpg
Kay Lun

it seems the code created by CkEditor does not contain a link element, you might need to try to check inside the CkEditor and see if there's an action or tool for inserting an URL. Sorry I'm also new to here, but this is what I think when looking at the output you showed here :)

2024-09-04 05-41-42
Pratap Singh Naruka

Link is created using CKeditor only
which have all relavent tags while we save template in DB.

UserImage.jpg
Kay Lun

have you try to use this client action to insert the content into the email template?

this might be the solution

2024-09-04 05-41-42
Pratap Singh Naruka

In Reactive Email we can't create client action

UserImage.jpg
Kay Lun

Sorry I think I don't have enough knowledge to help, as far as I know, there's no escape function in expression in reactive web app, no HTML web block can be added in email template, so I think there's no way to implement what you're trying to do.

Hope there's someone could help and I'm curious about the solution too.

2024-09-04 05-41-42
Pratap Singh Naruka

Thanks Kay Lun for your effort and time.

UserImage.jpg
Narendra Maheshwari

Hi Pratap,

If you want to send email from Reactive Web, you can do so with a simple JavaScript. This script is available with an OML attachment.

Furthermore, because it is client-side script, you cannot send emails from the Service Module. Instead, create a traditional app with an email expression and the escape content property set to True.


Hope it's works!!



Thanks,

Narendra




HtmlEntitiesDecode_Lib.oml
2024-09-04 05-41-42
Pratap Singh Naruka

Hi Narendra,




I have suggested this JS code earlier but this has to be added on each email screen.And the requirement was to use reactive email functionality only.And with HTML tags I found solution but link and formatted text was not getting replaced properly.
Moreover Escape content property set to NO can be achieved using InjectHTML but again that requires screen or web-block as it is a web block and can't be placed in EmailTemplate.
I think we certainly need to move back email functionality to Traditional web application again for feasible solution.
Thanks for  your time Narendra

With Regards 
Pratap Singh 

2026-04-13 05-08-14
Pankaj Jain

Hi Pratap Singh Naruka,

There is an alternative and easiest way to work this out. You can create a tradition web app and add the email functionality there with a text parameter, then expose a server action which will accept the text parameter and this will call your email internally. Finally use this as dependencies in your reactive web to call email functionality with your HTML parameter.

Please find the OML for email functionality implemented. Let me know you face any issue

Thanks
Pankaj

Email_IS_personal.oml
2026-04-13 05-08-14
Pankaj Jain

Please find the sample reactive app as well.

TestReactiveappPersonal.oml
2024-09-04 05-41-42
Pratap Singh Naruka

Hi Pankaj,

I have used Traditional web app solution for now.
My concern was regarding using single reactive module within Reactive application for email functionality using Email template (Using CKEditor).
creating traditional app and using reference in Reactive was standard solution we were already following earlier.


Thanks Pankaj

2026-04-13 05-08-14
Pankaj Jain

Hi Pratap Singh Naruka,

Happy to know that you already have the solution. 

I know it is not a right way to create a traditional app for a single email functionality. But this is the only way currently available in OutSystems but it is been already raised to OutSystems so please support this idea so that it will be implemented soon.

https://www.outsystems.com/ideas/11821/enable-using-html-content-in-email-body-in-reactive-app/

Thanks
Pankaj

2024-09-04 05-41-42
Pratap Singh Naruka

Absolutly Pankaj !!
I have supported the Idea.

Thanks for your time 

With regards ,
Pratap Singh

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