Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 1449
    
    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: 145

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: 1449
    
    6

Yes, telnet to smtp works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem connecting to smtp host
 
Similar Threads
SmtpClient
Problem in sending email from a portlet
Could not open connection to the host, on port 25: Connect Failed.
SMTP protocol : please help !
embeded java smtp server