<?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 Send Email with Attachment in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352151#M118586</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a simple requirement to pick a file from a folder and send it as an email attachment. Once the email with the attachment is sent, then we would like to move the file to a different location using  '&lt;B&gt;tFileCopy&lt;/B&gt;' . My problem, is I only get emails without an attachment first, and later on, on an intermittent basis receive one more email with an attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;tFIleList ---&amp;gt; tSendEMail&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;If condition to trigger email only when there is a file &lt;/B&gt;((Integer)globalMap.get("tFileList_2_NB_FILE"))!=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Gfa6GAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155008i52F85984143B2B35/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Gfa6GAAR.png" alt="0695b00000Gfa6GAAR.png" /&gt;&lt;/span&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;tSendEmail: &lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Gfa4AAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144068i0B38F74015C7ABDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Gfa4AAAR.png" alt="0695b00000Gfa4AAAR.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;tFileCopy:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Gfa4UAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133377iD133E3936285CA67/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Gfa4UAAR.png" alt="0695b00000Gfa4UAAR.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:59:15 GMT</pubDate>
    <dc:creator>Jennifer_siders</dc:creator>
    <dc:date>2024-11-15T23:59:15Z</dc:date>
    <item>
      <title>Send Email with Attachment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352151#M118586</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a simple requirement to pick a file from a folder and send it as an email attachment. Once the email with the attachment is sent, then we would like to move the file to a different location using  '&lt;B&gt;tFileCopy&lt;/B&gt;' . My problem, is I only get emails without an attachment first, and later on, on an intermittent basis receive one more email with an attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;tFIleList ---&amp;gt; tSendEMail&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;If condition to trigger email only when there is a file &lt;/B&gt;((Integer)globalMap.get("tFileList_2_NB_FILE"))!=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Gfa6GAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155008i52F85984143B2B35/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Gfa6GAAR.png" alt="0695b00000Gfa6GAAR.png" /&gt;&lt;/span&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;tSendEmail: &lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Gfa4AAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144068i0B38F74015C7ABDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Gfa4AAAR.png" alt="0695b00000Gfa4AAAR.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;tFileCopy:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Gfa4UAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133377iD133E3936285CA67/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Gfa4UAAR.png" alt="0695b00000Gfa4UAAR.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352151#M118586</guid>
      <dc:creator>Jennifer_siders</dc:creator>
      <dc:date>2024-11-15T23:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email with Attachment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352152#M118587</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;TfileList--&amp;gt;iterate link --&amp;gt;tJava with this code: globalMap.put("filePath",(String)globalMap.get("tFileList_2_CURRENT_FILEPATH"));&lt;/P&gt;&lt;P&gt; followed by two trigger links&lt;/P&gt;&lt;P&gt;after the tjava one for send mail an other for file copy with this condition (String)globalMap.get("filePath") != null&lt;/P&gt;&lt;P&gt;and you use (String)globalMap.get("filePath") in the two components.&lt;/P&gt;&lt;P&gt;Maybe you don't need an itermediary variable (here filePath) and you can use (String)globalMap.get("tFileList_2_CURRENT_FILEPATH") everywhere.&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 07:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352152#M118587</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-02T07:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email with Attachment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352153#M118588</link>
      <description>&lt;P&gt;Make sure the file is sent as attachment before it is removed, I would suggest you to move tFileCopy after tSendMail component, eg:&lt;/P&gt;&lt;P&gt;tFileList-iterate--tSendMail--oncomponentok--tFileCopy.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 07:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352153#M118588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-02T07:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email with Attachment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352154#M118589</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp; Thanks it worked as a charm.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 12:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352154#M118589</guid>
      <dc:creator>Jennifer_siders</dc:creator>
      <dc:date>2021-07-02T12:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email with Attachment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352155#M118590</link>
      <description>&lt;P&gt;Thanks @guenneguez jeremy​&amp;nbsp;for the response. I couldn't try your solution, but has helped me for implementing a other requirement &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 12:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-Email-with-Attachment/m-p/2352155#M118590</guid>
      <dc:creator>Jennifer_siders</dc:creator>
      <dc:date>2021-07-02T12:34:15Z</dc:date>
    </item>
  </channel>
</rss>

