<?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 [tSendMail] How to use context variable for password in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSendMail-How-to-use-context-variable-for-password/m-p/2302251#M74260</link>
    <description>&lt;P&gt;&lt;SPAN&gt;In the tSendMail component, we can use context variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For the server, the port and the login user, there's no issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For the password, how can I use also a context variable ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For instance, my password string is &lt;EM&gt;&lt;STRONG&gt;pass*&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've tried to write the password string, into a password type, within a context variable named smtp_password, with quotes ("pass*") or without quotes (pass*).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And I've tried tu use it in my tSendMail component in several ways:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;- context.smtp_password&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;- "\"" + context.smtp_password + "\""&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've always the same error :&amp;nbsp;javax.mail.AuthenticationFailedException.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Obviously, I've got the good password, and if I try to put it&amp;nbsp;in plain-text, within the tSendMail component, it's work fine.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:29:16 GMT</pubDate>
    <dc:creator>davidPnt</dc:creator>
    <dc:date>2024-11-16T05:29:16Z</dc:date>
    <item>
      <title>[tSendMail] How to use context variable for password</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSendMail-How-to-use-context-variable-for-password/m-p/2302251#M74260</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In the tSendMail component, we can use context variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For the server, the port and the login user, there's no issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For the password, how can I use also a context variable ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For instance, my password string is &lt;EM&gt;&lt;STRONG&gt;pass*&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've tried to write the password string, into a password type, within a context variable named smtp_password, with quotes ("pass*") or without quotes (pass*).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And I've tried tu use it in my tSendMail component in several ways:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;- context.smtp_password&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;- "\"" + context.smtp_password + "\""&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've always the same error :&amp;nbsp;javax.mail.AuthenticationFailedException.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Obviously, I've got the good password, and if I try to put it&amp;nbsp;in plain-text, within the tSendMail component, it's work fine.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSendMail-How-to-use-context-variable-for-password/m-p/2302251#M74260</guid>
      <dc:creator>davidPnt</dc:creator>
      <dc:date>2024-11-16T05:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: [tSendMail] How to use context variable for password</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSendMail-How-to-use-context-variable-for-password/m-p/2302252#M74261</link>
      <description>&lt;P&gt;It's ok. It's work fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I switch, in the context variable interface, from String type to Password type, for my smtp_password variable, it's seem like Talend don't keep the string password previously written, and don't encrypted it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the process is : after selected the password type for this variable, I have to write the password string.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 15:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSendMail-How-to-use-context-variable-for-password/m-p/2302252#M74261</guid>
      <dc:creator>davidPnt</dc:creator>
      <dc:date>2019-06-25T15:26:16Z</dc:date>
    </item>
  </channel>
</rss>

