I am developing a simple application that sends mail. I am using javamail api .after compilation it is giving the following exceptions 1)javax.mail.MessageException:-couldnot connect to smtp host local port 25. 2) java.net.Connectionexception connection refused. plz anybody tell wat i have to do to run the application fine.
shrihari
Jared Krull
Ranch Hand
Joined: Sep 28, 2001
Posts: 32
posted
0
Is the SMTP server valid? Check with telnet (There are loads of posts detailing this on this board. Have you a firewall that is blocking port 25?