javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 8080, 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 Coderanch by Isaac Ferguson, 1 year ago
Could not connect to SMTP host: localhost, port: 8080, response: -1
via Coderanch by Isaac Ferguson, 1 year ago
Could not connect to SMTP host: mail.leeanrouteidh.jvmhost.net, port: 8080; nested exception is: java.net.ConnectException: Operation timed out
via knowcoding.com by Unknown author, 2 years ago
via knowcoding.com by Unknown author, 1 year ago
via Stack Overflow by CorporateSlave
, 2 months ago
Could not connect to SMTP host: mail.value-exch.com, port: 25, response: -1
via knowcoding.com by Unknown author, 2 years ago
Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 8080, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1960)
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 emailsenden.SendEmail.main(SendEmail.java:60)

Users with the same issue

Once, 2 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.