Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Could not connect to SMTP host  RSS feed

 
Kishen Singh Punjabi
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a server with A.B.C.D ipaddress which has the SMTP HOST VALUE as localhost. Am able to send the emails from the server if my app is running in the Server.

If I run my App in my local JBoss server and make the SMTP HOST VALUE as ipadress of the Server and try to send email, I have the below exception




Please Help!!

Thanks in Advance.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My first guess is that there's a firewall in between that prevents connections from the host you're running this code on. Or maybe the mail server is configured not to accept connections from other hosts.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!