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 Java Products and Servers and the fly likes Problem connecting to smtp host Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Problem connecting to smtp host" Watch "Problem connecting to smtp host" New topic
Author

Problem connecting to smtp host

Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

I have a web application that sends mail. Everything works fine when the application is deployed in development server. But the same application fails to connect to smtp host when it's deployed in production sever. Following is the error log

javax.mail.MessagingException: Could not connect to SMTP host: smtp.cbeyond.com, port: 587;
nested exception is:
java.net.ConnectException: Connection refused: connect

Any help on this will be highly appreciated.


Swastik
Karn Kumar
Ranch Hand

Joined: Aug 06, 2009
Posts: 146

Have you mentioned proper host SMTP host address (i.e. of your ISP's SMTP address) in the application which sends email .
If you mentioned correctly can you try to ping that address from the production server.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

Yes, telnet to smtp works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem connecting to smtp host