<?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: Unable to send mail via tSendMail component - Gmail in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-send-mail-via-tSendMail-component-Gmail/m-p/2292190#M65297</link>
    <description>Hi,&amp;nbsp;&lt;BR /&gt;Thank you for you quick answer.&lt;BR /&gt;I'm indeed able to successfully import the certificate into the keystore using the windows command line. However,&amp;nbsp;I did not try with the tSetKeyStore component, what would that change ?&amp;nbsp;&lt;BR /&gt;Is there any way not to create and import a certificate for gmail everytime I have this SSLHandshakeException ?&amp;nbsp;&lt;BR /&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Séraphin</description>
    <pubDate>Tue, 12 Jul 2016 13:17:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-12T13:17:31Z</dc:date>
    <item>
      <title>Unable to send mail via tSendMail component - Gmail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-send-mail-via-tSendMail-component-Gmail/m-p/2292188#M65295</link>
      <description>Hi everyone,&amp;nbsp; 
&lt;BR /&gt;As said into the title, I'm unable to send a mail using the tSendMail component. 
&lt;BR /&gt;This is how i configured the component : 
&lt;BR /&gt;From : "xxxx@gmail.com" 
&lt;BR /&gt;SMTP server : "smtp.gmail.com" 
&lt;BR /&gt;SMTP port : 465 
&lt;BR /&gt;SSL support : checked 
&lt;BR /&gt;Required authentication : I simply filled in my gmail credentials 
&lt;BR /&gt;Whenever I try to send a mail, there you can see the exception message&amp;nbsp;I have :&amp;nbsp; 
&lt;BR /&gt;Exception in component tSendMail_1 
&lt;BR /&gt;javax.mail.MessagingException: Exception reading response; 
&lt;BR /&gt;&amp;nbsp; nested exception is: 
&lt;BR /&gt;javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
&lt;BR /&gt;at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462) 
&lt;BR /&gt;at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260) 
&lt;BR /&gt;at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) 
&lt;BR /&gt;at javax.mail.Service.connect(Service.java:297) 
&lt;BR /&gt;at javax.mail.Service.connect(Service.java:156) 
&lt;BR /&gt;at javax.mail.Service.connect(Service.java:105) 
&lt;BR /&gt;at javax.mail.Transport.send0(Transport.java:168) 
&lt;BR /&gt;at javax.mail.Transport.send(Transport.java:98) 
&lt;BR /&gt;at test_effiliation.test_0_1.test.tSendMail_1Process(test.java:676) 
&lt;BR /&gt;at test_effiliation.test_0_1.test.runJobInTOS(test.java:1042) 
&lt;BR /&gt;at test_effiliation.test_0_1.test.main(test.java:791) 
&lt;BR /&gt;Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
&lt;BR /&gt;at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) 
&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) 
&lt;BR /&gt;at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) 
&lt;BR /&gt;at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) 
&lt;BR /&gt;at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509) 
&lt;BR /&gt;at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) 
&lt;BR /&gt;at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) 
&lt;BR /&gt;at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) 
&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) 
&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) 
&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:928) 
&lt;BR /&gt;at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) 
&lt;BR /&gt;at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97) 
&lt;BR /&gt;at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) 
&lt;BR /&gt;at java.io.BufferedInputStream.read(BufferedInputStream.java:265) 
&lt;BR /&gt;at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75) 
&lt;BR /&gt;at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440) 
&lt;BR /&gt;... 10 more 
&lt;BR /&gt;Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
&lt;BR /&gt;at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387) 
&lt;BR /&gt;at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292) 
&lt;BR /&gt;at sun.security.validator.Validator.validate(Validator.java:260) 
&lt;BR /&gt;at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) 
&lt;BR /&gt;at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) 
&lt;BR /&gt;at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) 
&lt;BR /&gt;at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491) 
&lt;BR /&gt;... 22 more 
&lt;BR /&gt;Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
&lt;BR /&gt;at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) 
&lt;BR /&gt;at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) 
&lt;BR /&gt;at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) 
&lt;BR /&gt;at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382) 
&lt;BR /&gt;... 28 more 
&lt;BR /&gt;I figured out a way to bypass this exception following those steps : 
&lt;BR /&gt; 
&lt;BR /&gt;Create a SSL certificate for gmail port 465 with OpenSSL 
&lt;BR /&gt;Save it with a ".cer" extension 
&lt;BR /&gt;Add the certificate to the Java security keystore you can access through &amp;nbsp;"jdkx.x.x_xx/jre/lib/security/cacerts" 
&lt;BR /&gt;This certificate is supposed to be valid for more than the next 2 months, however I have to create a new one every 2 days or even less.&amp;nbsp; 
&lt;BR /&gt;Do you have any idea how not to create a certificate and be able to send a mail whenever I want/need to ?&amp;nbsp; 
&lt;BR /&gt;Thank you in advance for your answer. 
&lt;BR /&gt;Seraphin 
&lt;BR /&gt;NB : I'm using Talend Open Studio for Data Integration 6.1 and running Java JDK 1.8.0_91</description>
      <pubDate>Mon, 11 Jul 2016 16:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-send-mail-via-tSendMail-component-Gmail/m-p/2292188#M65295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-11T16:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send mail via tSendMail component - Gmail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-send-mail-via-tSendMail-component-Gmail/m-p/2292189#M65296</link>
      <description>Hi,&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Are you able to successfully import the certificate? By using&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;component tsetkeystore&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Here is an article about:&lt;A href="http://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find" target="_blank" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 12 Jul 2016 07:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-send-mail-via-tSendMail-component-Gmail/m-p/2292189#M65296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-12T07:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send mail via tSendMail component - Gmail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-send-mail-via-tSendMail-component-Gmail/m-p/2292190#M65297</link>
      <description>Hi,&amp;nbsp;&lt;BR /&gt;Thank you for you quick answer.&lt;BR /&gt;I'm indeed able to successfully import the certificate into the keystore using the windows command line. However,&amp;nbsp;I did not try with the tSetKeyStore component, what would that change ?&amp;nbsp;&lt;BR /&gt;Is there any way not to create and import a certificate for gmail everytime I have this SSLHandshakeException ?&amp;nbsp;&lt;BR /&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Séraphin</description>
      <pubDate>Tue, 12 Jul 2016 13:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-send-mail-via-tSendMail-component-Gmail/m-p/2292190#M65297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-12T13:17:31Z</dc:date>
    </item>
  </channel>
</rss>

