By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,281 Members | 2,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,281 IT Pros & Developers. It's quick & easy.

Unknown SMTP host exception while sending mail...

P: 97
Hi all...
am developing a web application in j2ee...am a newbie...
i have to send mails from my application...
have written the code...but it gives an error like the smtp host specified, is
unknown...
can anyone pleaz tell me what r the things to be set up or what r the configurations to be done to send a mail from my program...am using Transport.send(message) function to do it...plz help me...

thanx and regards,
sand...
Apr 21 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 10K+
P: 11,448
Turn debugging on for your mail session object and see what the problem is:
Expand|Select|Wrap|Line Numbers
  1.     session.setDebug(true);
kind regards,

Jos
Apr 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.