<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Email template in CMS</title><link>https://answers.axonivy.com/questions/1922/email-template-in-cms</link><description>&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;Is it possible to store HTML template for emails in CMS and still use the &amp;lt;%= %&amp;gt; placeholders ?&lt;/p&gt;
&lt;p&gt;for example:
&lt;/p&gt;&lt;table&gt;
       &lt;tbody&gt;&lt;tr&gt;
      &lt;td&gt;New Event: &lt;strong&gt;&amp;lt;%=in.event.channel.name%&amp;gt;&lt;/strong&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have added one JSP resource in CMS and referenced it in the Email Activity:
&amp;lt;%=ivy.cms.co("/emailTemplates/email")%&amp;gt;&lt;/p&gt;
&lt;p&gt;but it didn`t worked.&lt;/p&gt;
&lt;p&gt;Best Regards,
Yordan Yunchov&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</description><atom:link href="https://answers.axonivy.com/questions/1922/email-template-in-cms" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 03 Aug 2016 09:29:20 -0400</lastBuildDate><item><title>Answer by Barbara Brugger</title><link>https://answers.axonivy.com/questions/1922/email-template-in-cms/1931</link><description>&lt;p&gt;Hello Yordan&lt;/p&gt;
&lt;p&gt;I'm very sorry for misunderstanding you.&lt;/p&gt;
&lt;p&gt;Yes this is possible. You find an example how to do this in the WorkflowDemos project in the designer directory /applications/samples. As far as I can see your code looks fine, provided that the CMS path and the variable name are correct.&lt;/p&gt;
&lt;p&gt;Best regards
Barbara&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barbara Brugger</dc:creator><pubDate>Wed, 03 Aug 2016 09:29:20 -0400</pubDate><guid>https://answers.axonivy.com/questions/1922/email-template-in-cms/1931</guid></item></channel></rss>