title: Email confirmation asp.net
body: <p>This my working method to send a email</p>
  
  <pre><code>       Sub emailConfirm()
      Dim email As String = txtMail.Text
      Dim name As String = txtPrenom.Text + txtNom.Text
  
      Dim mail As MailMessage = New MailMessage()
      'mail.To.Add("francois.smtp@gmail.com")
      mail.To.Add(email)
      mail.From = New MailAddress("sumerman@gmail.com.com")
      mail.Subject = "Email using Gmail"
  
      Dim Body As String = "Hi " + name + ", this mail is to confirm your registration" + "Click on    the link to confirm please" + " Link(check note)  "
      mail.Body = Body
  
      mail.IsBodyHtml = True
      Dim smtp As SmtpClient = New SmtpClient()
      smtp.Host = "smtp.gmail.com"
      smtp.Port = 587
      smtp.Credentials = New System.Net.NetworkCredential("sumerman@gmail.com", "12345")
      smtp.EnableSsl = True
      smtp.Send(mail)
  
  
  End Sub
  </code></pre>
  
  <p>note:I want to send Link contains a unique identifier and verify the unique identifier in the login.aspx</p>
  
  <p>I don't know when to do this... </p>
  
  <p>I found nothing interesting on the net ...</p>
  
  <p>This is in Vb.net </p>
  
  <p>I will add security later</p>
  
  <p>Thank's for your helping!</p>