Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tsendmail component issue

Hi all,
i'm trying to send an email from my job, for that i'm using gmail smtp shost and port number.
SMTP : smtp.gmail.com
Host :465
SSL : true
i had given email id and password.
but i'm getting Connection Refused exception
Exception in component tSendMail_1
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
nested exception is:
java.net.ConnectException: Connection refused: connect
Labels (3)
42 Replies
Anonymous
Not applicable
Author

Hi,
We have reported your problem to our manager then come back to you asap.

Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina,
I have written a mail to support.eu@talend.com. I received the below response from them:


Hello,
Please note that as you are using a trial product version, you could not have access to our support portal. Nevertheless, you can always have access to our forum
Thank you
Sana LETAIEF SAFFAR 
Support Engineer
Email sletaief@talend.com




Thanks-Naksh
Anonymous
Not applicable
Author

hi,
I test tsend mail with gmail and everuthing its ok. but when i put the paramter of mi company i get this message.
javax.mail.MessagingException: Exception reading response;
  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
what can i do?.
Thanks,
Salvador
Anonymous
Not applicable
Author

Hi ssalvatierra,

The job should be OK if you have tested  tsend mail with gmail.

Did your company Inbox server require certification?
Please stick to one topic so that we can pay individual attention to it. 
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi sabrina,
This issue is solved.I had contacted eu support team.
Thanks lot!!
Anonymous
Not applicable
Author

Hi naksh,

Would you mind sharing your experience and solution with us?

Best regards
Sabrina
Anonymous
Not applicable
Author

Was this resolved? I am also getting "Connection refused" from Corporate MS Exchange server. Does this needs any setting enabled on the server side ?
javax.mail.MessagingException: Could not connect to SMTP host: pXXXXXXXX.XXXXX.XXXXXXX.com, port: 443
nested exception is:
 java.net.ConnectException: Connection refused: connect
 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
 
Thanks, Sachin
Anonymous
Not applicable
Author

Hi Sachin,
To read mail with IMAP it's port 143. IMAPS (SSL encrypted) is port 993.
( SMTPS, for sending mail with SSL encryption, is on port 465. )
Have you tried port 465.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hello Sabrina,
I am facing the same problem.
Could you please let me know the solution?
Exception in component tSendMail_1
javax.mail.MessagingException: Exception reading response;
  nested exception is:
 javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
 at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
 at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
 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 esb_is.rest_0_1.rest.tSendMail_1Process(rest.java:918)
 at esb_is.rest_0_1.rest.tRESTRequest_1_LoopProcess(rest.java:2151)
 at esb_is.rest_0_1.rest$RestServiceProviderImpl4TalendJob.processRequest(rest.java:402)
 at esb_is.rest_0_1.rest$RestServiceProviderImpl4TalendJob.getrahulv2(rest.java:502)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
 at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
 at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
 at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
 at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
 at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)
 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)
 at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:65)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
 at org.eclipse.jetty.server.Server.handle(Server.java:370)
 at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
 at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
 at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
 at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
 at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
 at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
 at java.lang.Thread.run(Thread.java:662)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
 at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:652)
 at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:484)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:818)
 at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
 at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
 at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
 at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
 ... 43 more
Anonymous
Not applicable
Author

screenshot