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.
posted 15 years ago
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?