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 Java Mail API not connecting me from my tomcat server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java Mail API not connecting me from my tomcat server" Watch "Java Mail API not connecting me from my tomcat server" New topic
Author

Java Mail API not connecting me from my tomcat server

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 740
Hello,



ERROR:
Javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;

Thanks & best regards
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Is there a mail server running on that port? Tomcat doesn't include one.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 740
Lester Burnham wrote:Is there a mail server running on that port? Tomcat doesn't include one.


No,

Thanks Lester Bunham I fixed it by using authenticator. when am giving login/pass then its work

best regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Mail API not connecting me from my tomcat server