mailing forgetpassword to user in 2.0

manojkumarmaithil's Avatar, Join Date: Jun 2007
Go4Expert Member
hello friends,

I just going to use passwordrecovery tool of for forgetpassword. But when i use this to send mail but it not work. However massege flash that password has been sent. Can anybody help me whats wrong with my code

protected void PasswordRecovery1_SendingMail(object sender, MailMessageEventArgs e)
SmtpClient smtp = new SmtpClient("");
        smtp.Host = "";

        smtp.Credentials = new System.Net.NetworkCredential("", "pwd");
        smtp.EnableSsl = true;
        smtp.Port = 587;
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
GMail smtp is a secured one and would require the right username and password to send the email.