<?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: multiple html tables in email in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/multiple-html-tables-in-email/m-p/2310365#M81499</link>
    <description>&lt;P&gt;That did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I was able to make it work by adding &amp;lt;/Table&amp;gt; within tsendmail message body.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Results are : \n" + ((String)globalMap.get("mailMessage")) + "&amp;lt;/TABLE&amp;gt;" + "\n" + "\n" + "Record Counts : \n" + ((String)globalMap.get("mailMessage_two"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the idea. It was helpful.&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 17:15:40 GMT</pubDate>
    <dc:creator>talendstar</dc:creator>
    <dc:date>2019-05-17T17:15:40Z</dc:date>
    <item>
      <title>multiple html tables in email</title>
      <link>https://community.qlik.com/t5/Talend-Studio/multiple-html-tables-in-email/m-p/2310363#M81497</link>
      <description>&lt;P&gt;I am able to send html based email&amp;nbsp; that contains one single table via tsendemail. I have another table for record counts that I would like to send in the same email.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have created two mail messages and here is what my tsendemail looks like:&lt;/P&gt; 
&lt;P&gt;"Results are : \n" + ((String)globalMap.get("mailMessage")) + "\n Record Counts : \n" + ((String)globalMap.get("mailMessage_two"))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However the second email message is getting appended to the last cell of the first table instead of a separate table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;here is tJavaRow_1:&lt;/P&gt; 
&lt;P&gt;String msg = ((String)globalMap.getOrDefault("mailMessage", "&amp;lt;TABLE name=b border=1 cellspacing=1px&amp;gt;" + "&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;STEP&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;DATETIME&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;"));&lt;BR /&gt;msg = msg + "&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;" + input_row.Step + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + input_row.Timestamp + "&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;";&lt;BR /&gt;globalMap.put("mailMessage", msg);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tJavaRow_2:&lt;/P&gt; 
&lt;P&gt;String msg_two = ((String)globalMap.getOrDefault("mailMessage_two", "&amp;lt;TABLE name=a border=1 cellspacing=1px&amp;gt;" + "&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;S&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;D&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;"));&lt;BR /&gt;msg_two = msg_two + "&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;" + row4.Timestamp + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + row4.Label + "&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;";&lt;BR /&gt;globalMap.put("mailMessage_two", msg_two);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have attached a screenshot of the flow.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsendemail.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4Xw.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143383i13BC4624B1E8B250/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4Xw.png" alt="0683p000009M4Xw.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the resulting email at the moment:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsendemail_result.PNG" style="width: 542px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4bi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147011i65A3CB935684B1FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4bi.png" alt="0683p000009M4bi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Any thoughts on how can I get the second table to print out separately?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 21:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/multiple-html-tables-in-email/m-p/2310363#M81497</guid>
      <dc:creator>talendstar</dc:creator>
      <dc:date>2019-05-15T21:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: multiple html tables in email</title>
      <link>https://community.qlik.com/t5/Talend-Studio/multiple-html-tables-in-email/m-p/2310364#M81498</link>
      <description>&lt;P&gt;This is not a Talend question at all but an HTML question, but I will answer it anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need an end table tag after the first message.&amp;nbsp; You should put one after the second message too for best practice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;...
input_row.Timestamp + "&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;/table&amp;gt;";
globalMap.put("mailMessage", msg);&lt;BR /&gt;...&lt;BR /&gt;&lt;SPAN&gt;msg_two = msg_two + "&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;" + row4.Timestamp + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + row4.Label + "&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;/table&amp;gt;";&lt;BR /&gt;&lt;/SPAN&gt;...&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 May 2019 07:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/multiple-html-tables-in-email/m-p/2310364#M81498</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-05-16T07:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: multiple html tables in email</title>
      <link>https://community.qlik.com/t5/Talend-Studio/multiple-html-tables-in-email/m-p/2310365#M81499</link>
      <description>&lt;P&gt;That did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I was able to make it work by adding &amp;lt;/Table&amp;gt; within tsendmail message body.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Results are : \n" + ((String)globalMap.get("mailMessage")) + "&amp;lt;/TABLE&amp;gt;" + "\n" + "\n" + "Record Counts : \n" + ((String)globalMap.get("mailMessage_two"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the idea. It was helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 17:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/multiple-html-tables-in-email/m-p/2310365#M81499</guid>
      <dc:creator>talendstar</dc:creator>
      <dc:date>2019-05-17T17:15:40Z</dc:date>
    </item>
  </channel>
</rss>

