javax.mail.MessagingException: Could not connect to SMTP host: , p ort: 465, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1922) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:638)

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 ittoolbox.com by Unknown author, 1 year ago
Could not connect to SMTP host: , p ort: 465, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1922) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:638)
via greatknow.com by Unknown author, 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port: 995, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1694) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:525)
via knowcoding.com by Unknown author, 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port: 995, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1694) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:525)
via greatknow.com by Unknown author, 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port: 995, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1694) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:525)
via greatknow.com by Unknown author, 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port: 995, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1694) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:525)
via knowcoding.com by Unknown author, 2 years ago
Could not connect to SMTP host: smtp.gmail.com, port: 995, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1694) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:525)
javax.mail.MessagingException: Could not connect to SMTP host: , p ort: 465, response: -1 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTra nsport.java:1922) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SM TPTransport.java:638)
at javax.mail.Service.connect(Service.java:295)
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 undefined.SendMail.send(SendMail.java:51)
at undefined.SendMailTest.main(SendMailTest.java:10)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 more bugmates

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