title: how to do email verification by sending the mail in jsp
body: <p>I am having the registration form.After submitting it goes to another JSP page where it gets the data of that form and stores it in my database.Now i want to send the email to the user id which he has given for the confirmation.I don't have any idea about it. please get me code for it.
  This is my registration form action and submit code.</p>
  
  <pre><code>&lt;form action="signupdata.jsp" method="POST"&gt;
  &lt;input type="submit" onclick="" value="submit"&gt;
  </code></pre>
  
  <p>This is on signupdata.jsp to save the data in my database.</p>
  
  <pre><code>int i=st.executeUpdate("insert into userdetails(firstname,lastname,email,password,cpassword,category) values('"+fname+"','"+lname+"','"+emal+"','"+pwd+"','"+cpwd+"','"+ctgry+"')");
  </code></pre>
  
  <p>Now I want to send the email of confirmation to the user's email ID like most of websites provides.</p>