<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Pass params to a custom email template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/pass-params-to-a-custom-email-template/m-p/266321#M219451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in wrote a custom action where, from the relative jsp dialog, I accept some text fields. At the end of the action I need to send an email using a custom template (.ftl) and I would pass the input fields (entered on the dialog) to the custom template so these fields "end up" in the email body.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new using template and so I don't know where to start….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 18:04:06 GMT</pubDate>
    <dc:creator>redbull</dc:creator>
    <dc:date>2013-01-11T18:04:06Z</dc:date>
    <item>
      <title>Pass params to a custom email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-params-to-a-custom-email-template/m-p/266321#M219451</link>
      <description>Hi,in wrote a custom action where, from the relative jsp dialog, I accept some text fields. At the end of the action I need to send an email using a custom template (.ftl) and I would pass the input fields (entered on the dialog) to the custom template so these fields "end up" in the email body.I'm</description>
      <pubDate>Fri, 11 Jan 2013 18:04:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-params-to-a-custom-email-template/m-p/266321#M219451</guid>
      <dc:creator>redbull</dc:creator>
      <dc:date>2013-01-11T18:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pass params to a custom email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-params-to-a-custom-email-template/m-p/266322#M219452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When using a template there will be a model which contains the values to use and the template itself which displays that model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If using free marker, your form data is your model and the email template formats the email message.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 22:13:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-params-to-a-custom-email-template/m-p/266322#M219452</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2013-01-11T22:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pass params to a custom email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-params-to-a-custom-email-template/m-p/266323#M219453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the piece of code for the form data (that is my dialog "travel-select.jsp"):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;……&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td width="85%"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/f:verbatim&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h:inputTextarea id="travel-destination" value="#{DialogManager.bean.travel-destination}" rows="4" cols="75" required="true" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onkeyup="javascript:checkButtonState();" onchange="javascript:checkButtonState();" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;f:verbatim&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;BR /&gt;……….&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;where &lt;/SPAN&gt;&lt;STRONG&gt;travel-destination&lt;/STRONG&gt;&lt;SPAN&gt; is the field that I would add into the email body&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and this is the piece of FreeMarker code for email template:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;……….&lt;BR /&gt;The travel destination you selected is as follows: ${travel-destination}.&lt;BR /&gt;……….&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;At runtime I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;A system error happened during the operation: 00140004 Error during processing of the template 'Expression travel-destinationis undefined on line 3, column 16 in workspace://SpacesStore/4374c30e-39e8-4d20-bacf-5856f30e9cb4.'. Please contact your system administrator.&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;(note: workspace://SpacesStore/4374c30e-39e8-4d20-bacf-5856f30e9cb4 is the custom email template).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where I went wrong? I forgot something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 11:10:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-params-to-a-custom-email-template/m-p/266323#M219453</guid>
      <dc:creator>redbull</dc:creator>
      <dc:date>2013-01-14T11:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pass params to a custom email template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-params-to-a-custom-email-template/m-p/266324#M219454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;…still no answer from the experts &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 08:51:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-params-to-a-custom-email-template/m-p/266324#M219454</guid>
      <dc:creator>redbull</dc:creator>
      <dc:date>2013-01-15T08:51:47Z</dc:date>
    </item>
  </channel>
</rss>

