on 5/22/01 10:53 PM, "vinayak kuamr maheswari" <[EMAIL PROTECTED]>
wrote:
> To send secret key automatically to user via mail, we are using javax.mail
> package and we have in built SMTP servet talking to port 25.
> This code of line in CreateNewUserAndConfirm.java:-
> ----
> ActionLoader.getInstance().exec(data, "SendConfirmationEmail");
> ----
> in SendConfirmationEmail we are creating the connection to smpt server at port
> 25.
> But at the time of execution we are getting this error
> ----------
> There was an unexpected error.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: no further information
> ---------------
> When we are using the same program separately from java console we are getting
> desired result, but when running the same code from turbine then only we are
> getting this error.
> so please help us.
> thnks
> vinayak
You need to have an SMTP SERVER running on localhost. Javax.mail isn't a
SMTP server.
Try this:
telnet localhost 25
If it fails, there is your reason.
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]