PasswordRecovery email


I’m working on a project in VS 2010 that was created in VS 2005 & 2008. I am using the standard PasswordRecovery control. When a goes through the password recovery process, everything appears
to be normal… They enter their user name, have to answer the security question, then the "Your password has been sent to you" message is displayed. But, the email is never received. I have tried user names with several different email addresses, but no messages
are received. What is a good way to debug this?

Here are my settings:

In web.config:

<!– The following line is set up for Gmail (otherwise, value="localhost") –>
<add key="MailServer" value=""/>…

Membership Provider:

<providers><add name="CustomizedMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SiteConnection" applicationName="/" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"/></providers>…

Also, all of the other emails generated from my site are being sent and received successfully…





Have you looked at the actual Gmail account you’re using to send the emails at and see if there are any errors posted back to that address? 

Have you tried setting enablePasswordRetrieval  to true? Anyway, here you have an example of how to use password retrieval.


Tibi, I did set enablePasswordRetrieval to true, but nothing changed. Thanks for the link, I’ll check into that…



Good idea! I’m checking now…


Well, I checked gmail and was able to determine that the emails are not being sent… Funny that the PasswordRecovery module doesn’t throw some type of error! I think I’ll just set up another Password Recovery page from scratch and see what happens

If you have logging turned on your SMTP server, you might check it to see how these emails were logged.

Leave a Reply