<?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 Re: How to set email addresses dynamically in cMail component in mediation route in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319009#M89301</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I noticed is cMail component in talend is not&amp;nbsp;allowing to access headers or properties of exchange.&lt;/P&gt;&lt;P&gt;When I put the context variables it works fine but when I try to put headers/properties, it does not recognize it.&lt;/P&gt;&lt;P&gt;Even there&amp;nbsp;seems no option to&amp;nbsp;use&amp;nbsp;language.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 09:55:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-16T09:55:51Z</dc:date>
    <item>
      <title>How to set email addresses dynamically in cMail component in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319007#M89299</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that we can set email properties such as Host,To,&amp;nbsp;Subject, From..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we do it dynamically? I have these&amp;nbsp;values in properties of exchange object.&lt;/P&gt;&lt;P&gt;Generally we can use exchange properties in many components of mediation but how to use them in cMail component?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319007#M89299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email addresses dynamically in cMail component in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319008#M89300</link>
      <description>I believe you can do this using headers and the Apache Simple language (&lt;A href="http://camel.apache.org/simple.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/simple.html&lt;/A&gt;). Set your headers using either a cProcessor or cSetHeader and use the Simple Language to assign the values in the cmail.</description>
      <pubDate>Fri, 16 Mar 2018 08:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319008#M89300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T08:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email addresses dynamically in cMail component in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319009#M89301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I noticed is cMail component in talend is not&amp;nbsp;allowing to access headers or properties of exchange.&lt;/P&gt;&lt;P&gt;When I put the context variables it works fine but when I try to put headers/properties, it does not recognize it.&lt;/P&gt;&lt;P&gt;Even there&amp;nbsp;seems no option to&amp;nbsp;use&amp;nbsp;language.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 09:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319009#M89301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T09:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email addresses dynamically in cMail component in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319010#M89302</link>
      <description>Hmmmmm, I'm sure it should work..... but it can take some playing around to get it right. You shouldn't need to have the Single option, you should just need to format the String correctly. Unfortunately I can't try it here as I don't have my computer. 
&lt;BR /&gt; 
&lt;BR /&gt;Something like.... 
&lt;BR /&gt; 
&lt;BR /&gt;"${in.header.headername}" 
&lt;BR /&gt; 
&lt;BR /&gt;.....should do it. 
&lt;BR /&gt; 
&lt;BR /&gt;Another (harder) way is to use PropertyPlaceholders. This is described below... 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCnGlCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/how-to-specify-dynamically-parameters-in-cMail/td-p/87663&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Contexts will work, but you will not be able to change them at runtime.</description>
      <pubDate>Fri, 16 Mar 2018 10:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319010#M89302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email addresses dynamically in cMail component in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319011#M89303</link>
      <description>&lt;P&gt;Hi Richard,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It worked with some play around. Basically talend cMail component does not provide the flexibility to set the values for the parameters available in it's setting (other than context variables).&lt;/P&gt; 
&lt;P&gt;But as you suggested it should work with headers, I added cSetHeader component before cMail component and it worked like charm.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It looks like, in cMail if there is any header with&amp;nbsp;which has the name same as the argument then header takes precedence over argument (option) in the uri.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks once again!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 10:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319011#M89303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T10:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email addresses dynamically in cMail component in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319012#M89304</link>
      <description>Glad you got it working. Did you use the Simple Language syntax I gave you?</description>
      <pubDate>Fri, 16 Mar 2018 13:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319012#M89304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T13:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email addresses dynamically in cMail component in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319013#M89305</link>
      <description>&lt;P&gt;Not actually, I used 'Property' language to set the values in headers as I had the values available in exchange properties.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319013#M89305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-20T13:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email addresses dynamically in cMail component in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319014#M89306</link>
      <description>&lt;P&gt;Can you provide code put in cprocessor and syntax used in cmail ? I'm facing the exact same problem and can't achieve it.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 19:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2319014#M89306</guid>
      <dc:creator>nboisvert</dc:creator>
      <dc:date>2018-09-17T19:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email addresses dynamically in cMail component in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2503102#M141732</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide us the names of the headers you set before cMail , per each parameter (from, to, cc ....) ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 15:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-email-addresses-dynamically-in-cMail-component-in/m-p/2503102#M141732</guid>
      <dc:creator>Arnaud_G</dc:creator>
      <dc:date>2025-01-27T15:41:28Z</dc:date>
    </item>
  </channel>
</rss>

