This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 732
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: 732
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
 
Similar Threads
NoClassDefFoundError JavaMail..........
javax.mail.internet.AddressException: Missing local name in string
Sending Emails
sending mail with JavaMail
smtp username/password for JavaMail