hello friends,

I just going to use passwordrecovery tool of asp.net 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.gmail.com");
        smtp.Host = "smtp.gmail.com";

        smtp.Credentials = new System.Net.NetworkCredential("username@gmail.com", "pwd");
        smtp.EnableSsl = true;
        smtp.Port = 587;