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 Atlassian JIRA by Kah Loun Foong [Atlassian], 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
via Atlassian JIRA by Kah Loun Foong [Atlassian], 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
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:1270)
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 com.cenqua.fisheye.mail.Mailer.send(Mailer.java:216)

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.