<?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] Sending query result by mail in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323051#M92937</link>
    <description>&lt;P&gt;You can write the HTML in to text files, use the context variables to update the text file, then import the text file as a global variable (string) eventually calling the global variable into the body of your email.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2020 15:54:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-10T15:54:42Z</dc:date>
    <item>
      <title>[resolved] Sending query result by mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323045#M92931</link>
      <description>Hi all,
&lt;BR /&gt;This is more of a designing question than related to the tool.
&lt;BR /&gt;I have a SQL query whose output I need to write in a message and send it using the tSendMail component.
&lt;BR /&gt;Anyone has done something similar or can tell me how I can design this job ?
&lt;BR /&gt;One job design that comes to my mind is:
&lt;BR /&gt;tMysqlInput---row1 (Main)---&amp;gt;tMap---sql_data (Main)---&amp;gt;tFileOutDelimited
&lt;BR /&gt;But then I get stuck. 
&lt;BR /&gt;I don't understand how I can read the contents of this delimited file and write it into the mail body.
&lt;BR /&gt;Can anyone help me please?</description>
      <pubDate>Fri, 09 May 2014 08:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323045#M92931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-09T08:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Sending query result by mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323046#M92932</link>
      <description>Use following&lt;BR /&gt;tMysqlInput---row1 (Main)---&amp;gt;tJavaRow--&amp;gt;OnSubJobOk--&amp;gt;tPop&lt;BR /&gt;in tJavaRow read every row and write formatted data in the form of html to context variable&lt;BR /&gt;Use that context variable inside the body of mail.&lt;BR /&gt;Check the post by largo-- he used html template for composing message&lt;BR /&gt;you will get some idea from this.&lt;BR /&gt;Thanks&lt;BR /&gt;Vaibhav</description>
      <pubDate>Fri, 09 May 2014 09:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323046#M92932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-09T09:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Sending query result by mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323047#M92933</link>
      <description>Thanks Vaibhav&lt;BR /&gt;Can you give me the URL of largo's post?</description>
      <pubDate>Fri, 09 May 2014 09:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323047#M92933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-09T09:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Sending query result by mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323048#M92934</link>
      <description>Hi, 
&lt;BR /&gt;You can pass query result to Context value then send them by tsendmail. 
&lt;BR /&gt;Please have a look at my screenshots. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDvw.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130901i74018C03C4DCFBB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDvw.png" alt="0683p000009MDvw.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME36.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155597iF7EBDDC7E32FC32E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME36.png" alt="0683p000009ME36.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME7q.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148335iA64148B869605E68/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME7q.png" alt="0683p000009ME7q.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 09 May 2014 10:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323048#M92934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-09T10:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Sending query result by mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323049#M92935</link>
      <description>Thanks xdshi! 
&lt;BR /&gt;That helped a lot. 
&lt;BR /&gt;But I want to format the text into HTML. 
&lt;BR /&gt;If I write the following in the tJavaRow component:
&lt;BR /&gt;
&lt;PRE&gt;context.messageVariable = context.messageVariable+"&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;"+row1.column1+"&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;"+row1.column2+"&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;"&lt;/PRE&gt;
&lt;BR /&gt;and in the tSendMail's Message field I write:
&lt;BR /&gt;
&lt;PRE&gt;"&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;table&amp;gt;"+context.messageVariable+"&amp;lt;/table&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;"&lt;/PRE&gt;
&lt;BR /&gt;The text in the mail appears as
&lt;BR /&gt;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;value1.1&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;value2.1&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;value1.2&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;value2.2&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;
&lt;BR /&gt;Is it possible to format the mail as a HTML content mail</description>
      <pubDate>Fri, 09 May 2014 10:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323049#M92935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-09T10:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Sending query result by mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323050#M92936</link>
      <description>I got how to change the content type from largouwalid's post. 
&lt;BR /&gt;Thanks again vaibhav and xdshi for all your help!!</description>
      <pubDate>Fri, 09 May 2014 11:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323050#M92936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-09T11:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Sending query result by mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323051#M92937</link>
      <description>&lt;P&gt;You can write the HTML in to text files, use the context variables to update the text file, then import the text file as a global variable (string) eventually calling the global variable into the body of your email.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 15:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Sending-query-result-by-mail/m-p/2323051#M92937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-10T15:54:42Z</dc:date>
    </item>
  </channel>
</rss>

