Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP.NET (http://www.go4expert.com/forums/asp-net/)
-   -   mailing forgetpassword to user in asp.net 2.0 (http://www.go4expert.com/forums/mailing-forgetpassword-user-aspnet-20-t17102/)

manojkumarmaithil 24Apr2009 20:39

mailing forgetpassword to user in asp.net 2.0
 
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

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;
}

thanks

shabbir 25Apr2009 13:09

Re: mailing forgetpassword to user in asp.net 2.0
 
GMail smtp is a secured one and would require the right username and password to send the email.


All times are GMT +5.5. The time now is 05:39.