javax.mail.MessagingException

Could not connect to SMTP host: xxx.com, port: 25, 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 web677

  • Could not connect to SMTP host: xxx.com, port: 25, response: -1
  • Could not connect to SMTP host: xxx.com, port: 25, response: -1
  • via Coderanch by Karsten Brondum, 8 months ago
    Could not connect to SMTP host: (host).d k, port: 25, response: -1
  • Stack trace

    • javax.mail.MessagingException: Could not connect to SMTP host: xxx.com, port: 25, 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: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 com.seleniumtests.test.SendFileEmail.trySendEmail(SendFileEmail.java:131) at com.seleniumtests.test.Email.generateReport(Email.java:27) at org.testng.TestNG.generateReports(TestNG.java:1094) at org.testng.TestNG.run(TestNG.java:1053) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

    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