• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem connecting to smtp host  RSS feed

 
Swastik Dey
Rancher
Posts: 1812
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Karn Kumar
Ranch Hand
Posts: 153
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1812
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, telnet to smtp works.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!