Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in sending mail  RSS feed

 
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
Posts: 21088
85
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
Boost this thread!