I can only tell you the steps involved in sending email confirmation
1) create database table and add columns you required ie firstname, lastname,VerificationCode, Dob ,active etc for registration
2) create a Registration form and add textboxes against you table
3) on saving form in databse generate Verification code save it in database and in email function
4) Send Email with verification code which was generated as querystring encrypted
5) In login page get verification code and decrypt it and verify with database
6) If verified then redirect the user to login page or else show exception
let me know if you have any questions