hii
i will to code a submit button so that a mail is generated carrying the information of the client to a destined email id form the database.
i want this email created and sent without the user seeing the content, eg when u register at some site u get a confirmation/ registration email.
i want to know how to store the text and also retrieve it from database.

the email has such content:
________________________________________________________
dear sir/mam
this is to bring to your notice that mr.<name of requester> , has requested for <no of items, filled as a number in the form>, so kindly see to it.
______________________________________________________
kindly provide the code,
thanks

Welcome harshit99,
What you said in your question is quite easy. I think you have jsp knowhow. Use javamail api and java.sql api.
If any problem with your code please post it. Use bb code tags.
Here is daniweb rule, so read it.
1.Homework policy
2.How to post source code?