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)
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.
@kay lunI have tried that way it gave output like this
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 :)
Link is created using CKeditor onlywhich have all relavent tags while we save template in DB.
have you try to use this client action to insert the content into the email template?
this might be the solution
In Reactive Email we can't create client action
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.
Thanks Kay Lun for your effort and time.
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
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 NarendraWith Regards Pratap Singh
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
ThanksPankaj
Please find the sample reactive app as well.
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
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/ThanksPankaj
Absolutly Pankaj !!I have supported the Idea.Thanks for your time With regards ,Pratap Singh