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



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

Answer / 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

More ASP.NET Code Interview Questions

Code for Getting Information About A File?

1 Answers  


How to get the row index on checking a Checkbox in a ListView

1 Answers  


how to upload a photo? i need to use it in a matrimonial applicaton...

1 Answers  


ArrayList declaration in .net

1 Answers  


Coding for Synchronizing Cache Access in ASP.NET?

1 Answers  


how to track links visited in google using iframes

1 Answers  


How we use ajax in asp.net through javaScript. Please givee me an example.

1 Answers  


How to get Dynamically Linked Comboboxes Set?

1 Answers   HCL,


How we implement the paypal in my website and how we make a payment through Credit Card.

2 Answers  


Code for Using Keyboard Events?

1 Answers  


Code for Creating a Form Using PlaceHolder Controls?

1 Answers   Arena, JSA,


how to convert Dataset to Object Array or list in c# .net

4 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)