Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SmtpClient  RSS feed

 
Yamuna Pattathil
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i get to download the class sun.net.smtp.SmtpClient.
I did a search at Sun's site and found nothing.
 
asheet anand
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
you dont need to download smtpclient to use it.
just import it in your program and start using its methods.
bye
asheet
 
Arun, Shanmugham
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yamuna,
You have to download the Java Mail API from Sun's Site. Search for Java Mail API and download it. Then set it in the class path and give an import of the SmtpClient class.
Arun
SCJP
 
Yamuna Pattathil
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks..
I got it. I was not able to find, where the class was in my machine. Also its not documented. I later found, its in rt.jar in the jre folder of java.
Yamuna
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!