Recover Password feature of ASP.NET C#

Posted by Babyeney under ASP.NET on 8/10/2011 | Points: 10 | Views : 2910 | Status : [Member] | Replies : 6
Hi! I'm trying to use the Recover Password Feature of the ASP.NET (c#) I have the ff configurations:

web configurations
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="account@gmail.com">
<network host="smtp.gmail.com" userName="account@gmail.com" password="password" port="587" enableSsl="true" />
</smtp>
</mailSettings>
</system.net>

When I run the application and try to put username on the textbox of the recover password, the page loads and this error appears:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xx.xx.xx.xx:587

Can anyone help me what's the problem? and how can I solve it?




Responses

Posted by: Vuyiswamb on: 8/10/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
please download http://www.fiddler2.com/fiddler2/

It will help you see the http or https traffic, when you see a line in red , on your right hand site of the fidlers there is a brief explanation on what is the problem in the "textview"

You can share your error to point out the reason for your error.


Thank you for posting at Dotnetfunda
[Administrator]

Babyeney, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Babyeney on: 8/10/2011 [Member] Starter | Points: 25

Up
0
Down
Hi! Thanks for the reply. I don't know how to use this and why will I be using this?

I hope for your reply again. Thank you so much

Babyeney, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Babyeney on: 8/10/2011 [Member] Starter | Points: 25

Up
0
Down
Is this what you're talking about? I still don't get..
 Download source file

Babyeney, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Itorian on: 8/10/2011 [Member] Starter | Points: 25

Up
0
Down
you config seems okay, check the internet connection or read this article that is in vb, you can change this in c# as well by using http://www.developerfusion.com/tools/convert/vb-to-csharp/

read this article:

http://www.itorian.com/articles/aspdotnet/2007/Sending-Email-with-Attachement-using-web.config-files-credentials-and-many-more-in-ASP.Net.aspx

Student of M.Tech IT | Microsoft MVP | Mindcracker MVP | IT Faculty | Blogger | Author

Babyeney, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Babyeney on: 8/10/2011 [Member] Starter | Points: 25

Up
0
Down
Thank you for the replies! I've searched all over the internet and looked up the website you suggested too. I guess I couldn't solve this problem. I won't be able to use the Recover Password.

Thank you so much for your time and thoughts.

Babyeney, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Itorian on: 8/11/2011 [Member] Starter | Points: 25

Up
0
Down
Look, there are many ways to develop password recovery system. As the discussion says in this thread, you are still struggling with just sending emails. When you fix this, you all left work will be easy. You just follow this simple scenario for your system.

(i) Ask the user to provide the email address
(ii) Search that emails address in databases and reply the same to user about its existence
(iii) If email address found then send his password and username record by writing some HTML codes for email body.

I hope you like it.

Student of M.Tech IT | Microsoft MVP | Mindcracker MVP | IT Faculty | Blogger | Author

Babyeney, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response