• Post Reply Bookmark Topic Watch Topic
  • New Topic

Send Mail-Exception  RSS feed

 
Natesan Prabhakaran
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i am new to java mail api., when i tried to send mail using my ip-address as my host(smtp.kmc-mob-dell004.com) name in a program , it give an exception like

"Unknown SMTP host: smtp.kmc-mob-dell004.com;"

and what is the best method to use or examples to "SEND MAIL"..

Thanks
prabhu
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by "giving you IP address as my host"? Are you using "smtp.kmc-mob-dell004.com"? Is that a valid machine name on the machine where you are running the code? I'm asking because WHOIS and NSLOOKUP don't know about the domain "kmc-mob-dell004.com", so unless your machine or DNS server is especially configured to know about it, this won't work.
 
Natesan Prabhakaran
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for reply..
my host name is correct one.. but it throws error like..

javax.mail.MessagingException: Unknown SMTP host: smtpauth.KMC-FI-DELL007.in;
nested exception is:
java.net.UnknownHostException: smtpauth.KMC-FI-DELL007.in

what it means..?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So from the machine where you are running this code, you can do a "ping smtpauth.KMC-FI-DELL007.in", and it finds that machine?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!