File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
Unknown host exception
Nila dhan
Ranch Hand
Joined: Sep 15, 2005
Posts: 160
posted
Oct 15, 2005 01:09:00
0
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
Marshal
Joined: Mar 22, 2005
Posts: 35239
7
posted
Oct 15, 2005 04:00:00
0
What do you specify as the SMTP host? It looks like it is not recognized or even empty.
Android apps
–
ImageJ plugins
–
Java web charts
Sandeep Murthy
Ranch Hand
Joined: Oct 05, 2005
Posts: 34
posted
Oct 15, 2005 04:03:00
0
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.
SCJP 1.4
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Unknown host exception
Similar Threads
Reg:Keyboard MApping
Sending a mail
Problem in sending message to MQ
Problem with Testing my RMI BusinessLogic with more than 200 Threads
JavaMail Problem Help Please
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter