public void SentMail(string userID)
        {
            try
            {
                MailMessage mm = new MailMessage("*****@*****.**", txtEmailID.Text.ToString());

                mm.Subject = "Account Activation";
                string body = "Hello " + txtFirstName.Text.ToString().Trim() + " " + txtLastName.Text.ToString().Trim() + " ,";
                body += "<br /><br />Please click the following link to activate your account";
                string userId = HttpUtility.UrlEncode(dbCommon.Encrypt(userID));
                string path   = "http://" + HttpContext.Current.Request.Url.Authority + "/user/EmailConfirmation.aspx?" + "uValue=" + userId;
                body         += "<br /><a href ='" + path + "'>Click here to activate your account.</a>";
                body         += "<br /><br />Thanks";
                mm.Body       = body;
                mm.IsBodyHtml = true;
                SmtpClient smtp = new SmtpClient();
                smtp.Host      = "smtp.gmail.com";
                smtp.EnableSsl = true;
                NetworkCredential NetworkCred = new NetworkCredential("*****@*****.**", "passcode");
                smtp.UseDefaultCredentials = true;
                smtp.Credentials           = NetworkCred;
                smtp.Port = 587;
                smtp.Send(mm);
                divRegistration.Visible = false;
                lblMsg.Text             = "Hello, " + txtFirstName.Text.ToString().Trim() + " " + txtLastName.Text.ToString().Trim();
                lblEmailID.Text         = txtEmailID.Text.ToString();
                divSentMail.Visible     = true;
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in sending email: " + ex.Message);
            }
        }