Two things:
1) Sending mail under Java control is done through the JavaMail API which is not a part of JSP. As such this post has been moved to a more approriate forum.
2) You wrote:
Please give me the source code of this so that i can use this in my project.
That is not the prupose of JavaRanch. JavaRanch is a learning site where you can come to get some great help wiriting your code. It is not a place to come and get others to write your code for you.
So, look up the JavaMail API and let us know of any problems you may have using it in your own code.