I want to send a Link that contains a unique identifier and verify the Guid in an another page named login.aspx
So how do I add the link and how do I retrieve the Guid from the login.aspx to compare it to the one I saved in the SQL database...
This is the code
Sub emailConfirm()
Dim email As String = txtMail.Text
Dim nom As String = txtPrenom.Text + txtNom.Text
Dim pass As String = txtPass.Text
Dim user As String = txtUserName.Text
Dim mail As MailMessage = New MailMessage()
Dim sGUID As String
sGUID = System.Guid.NewGuid.ToString()
(I will put the guid in the Sql DB)
mail.To.Add(email)
mail.From = New MailAddress("superman@gmail.com")
mail.Subject = "Email Comfirmation de nouvel utilisateur"
Dim Body As String = "Hi " + nom + ", this mail is to confirm your registration" + "Click on the link to confirm your membership please"+"href="login.aspx?ID="& sGUID"(This is not work...)
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("superman@gmail.com", "1234")
smtp.EnableSsl = True
smtp.Send(mail)
End Sub
thanks for your help!!!
Its in Vb.net