javax.mail.MessagingException: Could not connect to SMTP host: smtp.mail.yahoo.com, port: 465, 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 H Paul, 11 months ago
Could not connect to SMTP host: smtp.mail.yahoo.com, port: 465, response: -1
via coderanch.com by Unknown author, 1 year ago
Could not connect to SMTP host: smtp.mail.yahoo.com, port: 465, response: -1
via Stack Overflow by B.Thakur
, 1 week ago
Could not connect to SMTP host: smtpout.asia.secureserver.net, port: 465, response: -1
via Stack Overflow by XXX
, 2 years ago
Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
via Google Groups by ilango g, 2 months ago
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.ConnectException: Connection refused: connect
via Google Groups by ilango g, 2 months ago
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.ConnectException: Connection refused: connect
javax.mail.MessagingException: Could not connect to SMTP host: smtp.mail.yahoo.com, port: 465, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)
at javax.mail.Service.connect(Service.java:275)

Users with the same issue

Once, 6 months ago
769 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
26 more bugmates

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