File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes mail:javax.mail.MessagingException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "mail:javax.mail.MessagingException" Watch "mail:javax.mail.MessagingException" New topic


callous shabby

Joined: Apr 29, 2012
Posts: 3
Error in sending mail:javax.mail.MessagingException: Could not connect to SMTP host:, port: 25;
nested exception is: Connection timed out: connect
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 502

maybe your firewall blocks outgoing connection.

PM Me If You Want to get Urgent Help on Java Programming
I agree. Here's the link:
subject: mail:javax.mail.MessagingException
It's not a secret anymore!