This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unknown host exception

 
Nila dhan
Ranch Hand
Posts: 161
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi pals,
I am trying to send email from my application .But the exception occurs

javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: Unknown SMTP host:

What could be wrong here.Any suggestions?

BTW if i send mail from another system using the same application,it works!!!
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you specify as the SMTP host? It looks like it is not recognized or even empty.
 
Sandeep Murthy
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i) Check if you have the required jar files ( mailer.jar, activation.jar, ...) in your class path.
ii) Disable any antivirus program running while trying to send mails. The antivirus may be scanning the ports and block it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic