Mail Configuration

2003-01-18 Thread Madhu V
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
  namesmtp.4s-esupply.com/name
  value203.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




mail configuration

2001-02-14 Thread Piyush Baid

hi,
can anyone tell me how to configure mail on tomcat.
i am building an application which has to send attachments with the mail to a user.

best reagrds

piyush


Re: mail configuration

2001-02-14 Thread Rick Roberts


Take a look at JavaMail.
http://java.sun.com/products/javamail/



On Wed, 14 Feb 2001, you wrote:
 hi,
 can anyone tell me how to configure mail on tomcat.
 i am building an application which has to send attachments with the mail to
 a user.

 best reagrds

 piyush

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]