Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
KrupalGharat
Contributor II
Contributor II

tSendMail Can't send command to SMTP host

Hi,

I am trying to send mail using tSendMail component, but getting the following error:

[FATAL]: projectname.jobname - tSendMail Can't send command to SMTP host

 

Following is the error stack:

[INFO ]: projectname.jobname - talendStats_CONSOLE - Printed row count: 1.
Exception in component tSendMail
javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
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
at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1420)
at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1408)
at com.sun.mail.smtp.SMTPTransport.ehlo(SMTPTransport.java:847)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:384)
at javax.mail.Service.connect(Service.java:297)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at projectname.jobname.tSendMailProcess(jobname.java:1649)
at projectname.jobname.tSetKeystoreProcess(jobname.java:1372)
at projectname.jobname.tFileArchiveProcess(jobname.java:743)
at projectname.jobname.runJobInTOS(jobname.java:5994)
at projectname.jobname.main(jobname.java:5789)
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
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:965)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:750)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
at com.sun.mail.util.TraceOutputStream.write(TraceOutputStream.java:101)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1418)
... 13 more

 

What is the root cause of this error?

 

Thanks in advance.

Labels (6)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

3 Replies
Anonymous
Not applicable

Hi
Which SMTP provider do you use? Take a look at a similar issue on stackoverflow, have a try to check the 'STARTTLS Support' box on tSendMail component.
https://stackoverflow.com/questions/6740838/javamail-issue-cant-send-command-to-smtp-host

Regards
Shong
manodwhb
Champion II
Champion II

KrupalGharat
Contributor II
Contributor II
Author

Thankyou for your help!