javax.mail.MessagingException

Could not connect to SMTP host: localhost, port: 8080, response: -1

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web676

  • via Coderanch by Isaac Ferguson, 11 months ago
    Could not connect to SMTP host: localhost, port: 8080, response: -1
  • via Oracle Community by Himanshu Sethi, 11 months ago
    Could not connect to SMTP host: *******, port: ***, response: -1
  • Could not connect to SMTP host: , port: 465, response: -1
  • Stack trace

    • 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 com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    4 times, 9 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    26 more bugmates