Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in sending mail

 
yogi maheshnath
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have written following code:--
But its giving following Exception though i have imported javax.mail.Authenticator :-
Thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20608
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.mail.Authenticator is in the main JavaMail JAR file, so please check if that is in the class path of your servlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic