Hi , I am new to Tomcat, I want do mail configaration for small application in jakarta-tomcat-4.0.6. I tried configuring below, but it is not working. I will give the configuration in details
Modified file %TOMCAT_HOME%\conf\server.xml by changing <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/> <ResourceParams name="mail/Session"> <parameter> <name>smtp.4s-esupply.com</name> <value>203.199.182.171</value> </parameter> </ResourceParams> where stmt.4s-esupply.com is stmt host name 203.199.182.171 is the ip address of the host. The error i am getting is ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect javax.mail.SendFailedException: Sending failed; No where i configured smtp as local server, but still it is giving me as localhost. Can any one help me on this, Thanks for any advice Regards madhu V