posted 21 years ago
Hi All,
I have written an application which sends emails using JavaMail.Sometimes these mails are sent successfully without any issue.
But sometimes, I get errors like -
The email could not be sent because - Sending failed;
nested exception is:
class javax.mail.MessagingException: Could not connect to SMTP host: mail.hotmail.com, port: 25;
nested exception is:
java.net.ConnectException: Operation timed out: connect
or sometimes I get -
The email could not be sent because - Sending failed;
nested exception is:
class javax.mail.MessagingException: Could not connect to SMTP host: mail.hotmail.com, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
These errors occur very frequently and though the error messages indicate that the mail server is not accepting any request, is there some way to overcome it ?
Please reply ASAP...in a tight spot...:-(
Thanks in advance