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 |
Code for Getting Information About A File?
How to get the row index on checking a Checkbox in a ListView
how to upload a photo? i need to use it in a matrimonial applicaton...
ArrayList declaration in .net
Coding for Synchronizing Cache Access in ASP.NET?
how to track links visited in google using iframes
How we use ajax in asp.net through javaScript. Please givee me an example.
How to get Dynamically Linked Comboboxes Set?
How we implement the paypal in my website and how we make a payment through Credit Card.
Code for Using Keyboard Events?
Code for Creating a Form Using PlaceHolder Controls?
how to convert Dataset to Object Array or list in c# .net