File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Facing problem to send mail using javamail api without authentication

 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


According code given above i am getting following error . please help me to solve this problem.
 
Paul Clapham
Sheriff
Pie
Posts: 20193
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yet another reason why you shouldn't put Java code in a JSP. Based on the compiler message, it appears that the variable named "session" has already been declared. Either you did that, or (more likely) the "session" variable is one which is built into every JSP.

The straightforward solution would of course be to just call your "session" variable something else. But the proper solution would be to take that code out of the JSP entirely and put it in a servlet, or a helper class, or some other Java class.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic