Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

I need to get a code that will send the forgotten password to the email that the user write in the registartion area, you know when a user forget his password he get into a page with a form that let him to write the email or username or both, and the password will be sent to that email,I use access database.

Thank's.

Posted

Shlvy, you should not expect people write the source code to you from nothing. Furthermore, I don't think it is difficult for you to send password.

 

You just need to verify whether the username & email exist, then retrieve the password from database and send to this email address.

Posted

Dim myMail As New Mail.MailMessage()

Dim str As String = ""

 

Dim sb As New StringBuilder()

sb.Append(vbCrLf)

sb.Append("Your password is " & myPassword)

sb.Append(vbCrLf)

sb.Append(vbCrLf)

End If

 

With myMail

.From = "Me@Me.com"

.To = txtEmail.Text

.Subject = "Password"

.Body = sb.ToString

End With

 

SmtpMail.SmtpServer = "127.0.0.1"

 

SmtpMail.Send(myMail)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...