File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Jmail Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Jmail" Watch "Jmail" New topic
Author

Jmail

shrihari
Greenhorn

Joined: Oct 09, 2001
Posts: 1
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
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?


C programmer gone astray
 
 
subject: Jmail
 
Threads others viewed
How to maintain Session
Session timeout and redirecting to login.
Enable isn't working in script
SSLException: untrusted server cert chain
Changing user using ant
IntelliJ Java IDE