<?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: [resolved] tSendMail dynamic message in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-dynamic-message/m-p/2252936#M36432</link>
    <description>Thank you, 
&lt;BR /&gt;i just test it works good 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Fri, 22 Nov 2013 09:46:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-11-22T09:46:30Z</dc:date>
    <item>
      <title>[resolved] tSendMail dynamic message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-dynamic-message/m-p/2252934#M36430</link>
      <description>Hello! 
&lt;BR /&gt;i want tSendMail with a dynamic message. 
&lt;BR /&gt;I have a text in a file, and i want send it with tSendMail. 
&lt;BR /&gt;I try with tFileInputDelimited, but it send an email for each lines of my file, but i want only one email with all lines of my file. 
&lt;BR /&gt;Someone know how to do? 
&lt;BR /&gt;(sorry maybe my english is not very good 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; ) 
&lt;BR /&gt;Thx</description>
      <pubDate>Fri, 22 Nov 2013 09:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-dynamic-message/m-p/2252934#M36430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-22T09:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSendMail dynamic message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-dynamic-message/m-p/2252935#M36431</link>
      <description>Hi
&lt;BR /&gt;Use a tFileInputFullRow to read the file line by line, concatenate all lines with separator "\n" and store the result to a context variable on tJava, the job design is read as below:
&lt;BR /&gt;tFileInputFullRow--main--tJavaRow
&lt;BR /&gt; |
&lt;BR /&gt;onsubjobok
&lt;BR /&gt; |
&lt;BR /&gt;tSendMail
&lt;BR /&gt;Open the Context view and define a variable, name it as "message" for example, and set its default values as "".
&lt;BR /&gt;on tJavaRow:
&lt;BR /&gt;if(context.message.equals("")){
&lt;BR /&gt;context.message=input_row.line;
&lt;BR /&gt;}else{
&lt;BR /&gt;context.message=context.message+"\n"+input_row.line;
&lt;BR /&gt;}
&lt;BR /&gt;On tSendMail, set the Message field with context variable, for example:
&lt;BR /&gt;"The file content is: "+context.message
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 22 Nov 2013 09:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-dynamic-message/m-p/2252935#M36431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-22T09:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSendMail dynamic message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-dynamic-message/m-p/2252936#M36432</link>
      <description>Thank you, 
&lt;BR /&gt;i just test it works good 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 22 Nov 2013 09:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-dynamic-message/m-p/2252936#M36432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-22T09:46:30Z</dc:date>
    </item>
  </channel>
</rss>

