javax.mail.MessagingException: Could not connect to SMTP host: cardigan.hypertherm.com, port: 25; nested exception is: java.net.ConnectException: Connection refused at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTranspor t.java:1213)

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by steve.g, 1 year ago
Could not connect to SMTP host: cardigan.hypertherm.com, port: 25; nested exception is: java.net.ConnectException: Connection refused at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTranspor t.java:1213)
via Stack Overflow by Beto Neto
, 1 year ago
STARTTLS is required but host does not support STARTTLS
via Stack Overflow by Shruti Singh
, 2 years ago
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.ConnectException: Connection refused: connect at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
javax.mail.MessagingException: Could not connect to SMTP host: cardigan.hypertherm.com, port: 25; nested exception is: java.net.ConnectException: Connection refused at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTranspor t.java:1213)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
769 times, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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