Hello,
I have a peculiar problem. I am running RH Linux 7.2. I am using jsp for my website.
I recently shifted my website from company to another. In the earlier company, the mail.smtp.host for sendmail using tomcat was webserver.com.
When we shifted the website, we did not change the coding and hence received the error that webserver.com is unavailable. Then we changed the coding to reflect the current hostname. It worked fine for a month and now the problem has surfaced again. We checked the coding. It reflects the current hostname only. The coding has not been changed. Any idea why it behaving so. I have checked out the sendmail part too, using the examples in tomcat. I was able to receive mails send through the same. Hence sendmail is working fine. The error I receive is -
Error : javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: webserver.com, port: 25; nested exception is: java.net.ConnectException: Connection timed out
Could someone help me on this please.
I have a peculiar problem. I am running RH Linux 7.2. I am using jsp for my website.
I recently shifted my website from company to another. In the earlier company, the mail.smtp.host for sendmail using tomcat was webserver.com.
When we shifted the website, we did not change the coding and hence received the error that webserver.com is unavailable. Then we changed the coding to reflect the current hostname. It worked fine for a month and now the problem has surfaced again. We checked the coding. It reflects the current hostname only. The coding has not been changed. Any idea why it behaving so. I have checked out the sendmail part too, using the examples in tomcat. I was able to receive mails send through the same. Hence sendmail is working fine. The error I receive is -
Error : javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: webserver.com, port: 25; nested exception is: java.net.ConnectException: Connection timed out
Could someone help me on this please.