javax.mail.MessagingException: Could not connect to SMTP host: mail1.us.test.com, port: 25

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 Stack Overflow by Mr Smith
, 1 year ago
Could not connect to SMTP host: mail1.us.test.com, port: 25
via Google Groups by pve...@gmail.com, 2 years ago
Could not connect to SMTP host: mail.onkoistudios.com, port: 465, response: -1
via Google Groups by Mohamad Asmawi Bin Abdul Rahman, 1 month ago
Unknown SMTP host: owasvr.staff.uniten.local; nested exception is: java.net.UnknownHostException: owasvr.staff.uniten.local
via Stack Overflow by Jitendra Saini
, 10 months ago
Could not connect to SMTP host: smtpout.secureserver.net, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
via Google Groups by javed.hirani, 2 months ago
Unknown SMTP host: smtp.myu.edu; nested exception is: java.net.UnknownHostException: smtp.myu.edu
via Google Groups by Hardik Mishra, 2 months ago
Unknown SMTP host: smtp.myu.edu; nested exception is: java.net.UnknownHostException: smtp.myu.edu
javax.mail.MessagingException: Could not connect to SMTP host: mail1.us.test.com, port: 25
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
114 more bugmates

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