Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail through jsp

Status
Not open for further replies.

pattar

IS-IT--Management
Aug 6, 2000
38
IN
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top