<?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 [resolved] tSendMail - Get message text from context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220595#M14935</link>
    <description>Hello 
&lt;BR /&gt;i have the following problem: 
&lt;BR /&gt;i want to send my output file per email. For the basic settings i want to use context variables. It works fine as long as i don't use context variables for the subject or the message field (see pic 3). 
&lt;BR /&gt;When i use context variables for these two fields, i get the following error (see pic 1): 
&lt;BR /&gt; 
&lt;BR /&gt;Exception in component tSendMail_1 
&lt;BR /&gt;javax.mail.SendFailedException: Invalid Addresses; 
&lt;BR /&gt; nested exception is: 
&lt;BR /&gt; com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address 
&lt;BR /&gt; at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196) 
&lt;BR /&gt; at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) 
&lt;BR /&gt; at javax.mail.Transport.send0(Transport.java:169) 
&lt;BR /&gt; at javax.mail.Transport.send(Transport.java:98) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.tSetGlobalVar_1Process(webpxe_mka_group.java:2997) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.tHashInput_2Process(webpxe_mka_group.java:4528) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.tMysqlInput_1Process(webpxe_mka_group.java:9717) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.runJobInTOS(webpxe_mka_group.java:11238) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.main(webpxe_mka_group.java:10923) 
&lt;BR /&gt;Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address 
&lt;BR /&gt; at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) 
&lt;BR /&gt; ... 8 more 
&lt;BR /&gt;Failed to send mail 
&lt;BR /&gt; 
&lt;BR /&gt;What am I doing wrong? Is it not possible to set the subject and message text per context variables? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC6S.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134133i33DCBAB582CC31B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC6S.jpg" alt="0683p000009MC6S.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC6X.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147823iC5A3A9E0442FA5B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC6X.jpg" alt="0683p000009MC6X.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBto.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149850i4B618CC314283E8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBto.jpg" alt="0683p000009MBto.jpg" /&gt;&lt;/span&gt;</description>
    <pubDate>Fri, 06 Dec 2013 14:36:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-06T14:36:51Z</dc:date>
    <item>
      <title>[resolved] tSendMail - Get message text from context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220595#M14935</link>
      <description>Hello 
&lt;BR /&gt;i have the following problem: 
&lt;BR /&gt;i want to send my output file per email. For the basic settings i want to use context variables. It works fine as long as i don't use context variables for the subject or the message field (see pic 3). 
&lt;BR /&gt;When i use context variables for these two fields, i get the following error (see pic 1): 
&lt;BR /&gt; 
&lt;BR /&gt;Exception in component tSendMail_1 
&lt;BR /&gt;javax.mail.SendFailedException: Invalid Addresses; 
&lt;BR /&gt; nested exception is: 
&lt;BR /&gt; com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address 
&lt;BR /&gt; at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196) 
&lt;BR /&gt; at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) 
&lt;BR /&gt; at javax.mail.Transport.send0(Transport.java:169) 
&lt;BR /&gt; at javax.mail.Transport.send(Transport.java:98) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.tSetGlobalVar_1Process(webpxe_mka_group.java:2997) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.tHashInput_2Process(webpxe_mka_group.java:4528) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.tMysqlInput_1Process(webpxe_mka_group.java:9717) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.runJobInTOS(webpxe_mka_group.java:11238) 
&lt;BR /&gt; at data_auditing.webpxe_mka_group_0_1.webpxe_mka_group.main(webpxe_mka_group.java:10923) 
&lt;BR /&gt;Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address 
&lt;BR /&gt; at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) 
&lt;BR /&gt; ... 8 more 
&lt;BR /&gt;Failed to send mail 
&lt;BR /&gt; 
&lt;BR /&gt;What am I doing wrong? Is it not possible to set the subject and message text per context variables? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC6S.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134133i33DCBAB582CC31B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC6S.jpg" alt="0683p000009MC6S.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC6X.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147823iC5A3A9E0442FA5B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC6X.jpg" alt="0683p000009MC6X.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBto.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149850i4B618CC314283E8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBto.jpg" alt="0683p000009MBto.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 06 Dec 2013 14:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220595#M14935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-06T14:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSendMail - Get message text from context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220596#M14936</link>
      <description>Your problem is definitely not the usage of Context variables. Thats absolute normal and in my job it is common. The problem is only the content of the variables. The addresses must be concatenate with a comma and not a semicolon (I do not see your content but this is a common mistake).</description>
      <pubDate>Fri, 06 Dec 2013 17:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220596#M14936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-06T17:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSendMail - Get message text from context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220597#M14937</link>
      <description>Hi 
&lt;BR /&gt;As jlolling said, the problem is only the content of the variables, for testing, use a tJava before tSendMail component to print the value of context variable and validate the value is set correctly or not. Eg: 
&lt;BR /&gt;....tSetGlobalVar--oncomponentok--tJava--tSendMail.... 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 07 Dec 2013 02:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220597#M14937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-07T02:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSendMail - Get message text from context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220598#M14938</link>
      <description>Thanks for your replies. &lt;BR /&gt;I set the content of the variable to "test" and validate the value with tJava, but the problem still exists. I also tried to insert the value of the variable to a global var and call it, but the same error appears</description>
      <pubDate>Mon, 09 Dec 2013 09:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220598#M14938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSendMail - Get message text from context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220599#M14939</link>
      <description>Hi 
&lt;BR /&gt;If the email address is set to "test", it is obviously an invalid address. A standard email address should be like: xxxx@xxx.xxx 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 09 Dec 2013 09:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220599#M14939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSendMail - Get message text from context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220600#M14940</link>
      <description>Oh no, the problem is not the email adress! This works fine, the only problem is when i want to set the email message, the text of the email, per context variable! I set the message text to "test", not the email adress! 
&lt;BR /&gt;If i insert the text manually, all works fine and the mail will be sent. but when i get the messsage text (not the email adress!) from a context variable or a global variable the program crash and throw the error i send in my first post</description>
      <pubDate>Mon, 09 Dec 2013 09:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220600#M14940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T09:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSendMail - Get message text from context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220601#M14941</link>
      <description>hi all,
&lt;BR /&gt;As Shong said, catch the value you've got in context.email_cc thanks a tJava component to be sure about it.
&lt;BR /&gt;
&lt;PRE&gt;System.out.println(context.email_cc);&lt;/PRE&gt;
&lt;BR /&gt;And you don't have to use a row connector to tSendMail !
&lt;BR /&gt;regards
&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 09 Dec 2013 09:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220601#M14941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T09:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSendMail - Get message text from context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220602#M14942</link>
      <description>Ok problem solved, was just a syntax error, like you expect. &lt;BR /&gt;Thanks you all for the help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 09 Dec 2013 10:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSendMail-Get-message-text-from-context-variable/m-p/2220602#M14942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T10:25:09Z</dc:date>
    </item>
  </channel>
</rss>

