Pages

Monday, January 7, 2013

Reset password in ASP.net Without using email and security question

Here is the good example after several tries.

http://msdn.microsoft.com/en-us/library/d94bdzz2.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

send email in asp.net function


MailMessage mail = new MailMessage();

  mail.To = "receivers@email.address";
  mail.From = "senders@email.address";
  mail.BodyFormat = MailFormat.Text;
  mail.Subject = "Subject of this Email";
  mail.Body = "Body of this message.";

 SmtpMail.Send(mail);

 

site weekly hits