javax.mail.MessagingException: Could not connect to SMTP host: usdc2spam2.slingmedia.com, port: 9000; nested exception is: java.net.ConnectException: Connection refused: connect

Stack Overflow | SAR | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    MailConnectException in Java

    Stack Overflow | 3 years ago | Batuhan Bardak
    com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 587; timeout -1; nested exception is: java.net.ConnectException: Connection timed out: connect at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654) at javax.mail.Service.connect(Service.java:345) at javax.mail.Service.connect(Service.java:226) at gmailYeni.SendMail.sendFromGMail(SendMail.java:52) at gmailYeni.SendMail.main(SendMail.java:20) `Caused by: java.net.ConnectException: Connection timed out: connect
  2. 0

    i want to know how can we send mails to yahoo id's, Gmail id's, Rediffmail

    Oracle Community | 1 decade ago | 843842
    java.net.ConnectException: Connection refused: connect
  3. 0

    How to send mail to Yahoo, Gmail, Rediffmail etc using JavaMail

    Oracle Community | 1 decade ago | 843830
    java.net.ConnectException: Connection refused: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't connect to Lotus Notes server

    Oracle Community | 1 decade ago | 843830
    javax.mail.MessagingException: Could not connect to S MTP host: ***************, port: 25, response: 554
  6. 0

    javax.mail.NoSuchProviderException: smtp ...

    Oracle Community | 1 decade ago | 843830
    java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine

  1. osvzs 1 times, last 3 days ago
  2. Pilleo 1 times, last 4 days ago
  3. batwalrus76 2 times, last 6 days ago
  4. Dunmer 1 times, last 7 days ago
  5. johnxfly 5 times, last 2 weeks ago
59 more registered users
36 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused: connect

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(Unknown Source)
    3. java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    4. java.net.PlainSocketImpl.connect(Unknown Source)
    5. java.net.SocksSocketImpl.connect(Unknown Source)
    6. java.net.Socket.connect(Unknown Source)
    7. java.net.Socket.connect(Unknown Source)
    7 frames
  3. JavaMail API (compat)
    SMTPTransport.openServer
    1. com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:288)
    2. com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
    3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
    3 frames