javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via knowcoding.com by Unknown author, 2 years ago
via knowcoding.com by Unknown author, 1 year ago
via knowcoding.com by Unknown author, 2 years ago
Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
via blogspot.com by Unknown author, 2 years ago
Could not connect to SMTP host: smtp.gmail.com, port: 465
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1949)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at org.pentaho.platform.plugin.services.email.EmailService.sendEmailTest(EmailService.java:173)
at org.pentaho.platform.web.http.api.resources.EmailResource.sendEmailTest(EmailResource.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

Users with the same issue

Once, 6 days ago
Once, 8 months ago
769 times, 1 year ago
4 times, 1 year ago
102 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.