adspace


What is the code of Password Recovery or Forget your
password? Plz tell in c # language.

Answer Posted / Aditya Singh

In C#, you can create a password recovery function using email or other means of contact. Here's an example using email:

```csharp
using System;
using System.Net.Mail;
...

public void RecoverPassword(string email)
{
SmtpClient client = new SmtpClient("smtp.gmail.com");
MailMessage message = new MailMessage();
message.From = new MailAddress("<your-email>");
message.To.Add(email);
message.Subject = "Password Recovery";
message.Body = "Your password has been recovered and sent to you via a separate email.";
client.Send(message);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category