PasswordRecovery email

Hi,

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:

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

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…

 

Thanks,

Curt

 

Have you looked at the actual Gmail account you’re using to send the emails at
www.gmail.com 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.

http://msdn.microsoft.com/en-us/library/system.web.security.membership.enablepasswordretrieval.aspx

 

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

Curt 

Christopher,

Good idea! I’m checking now…

Curt 

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