adeeeb wrote:
I have started with ASP.Net just 1 month. Right now, my project may implement the control that users can recovery their password by answering question. We all know that Visual Studio or Visual Web Developer has a control name Password Recovery Control, just drag and drop. So far I have set user in my ASP.Net Web Administration. But according to 1 video that I already seen, when we add new user or role within the project or website,
To get that database you need to use C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe it will prompt you for a database to create the structure in.
adeeeb wrote:
Second thing that I have trouble is sending an email. Actually, I don't have any SMTP mail server
IIS has one available to be installed as part of the product.
adeeeb wrote:
Here my code, and I just want to send to user a simple email that say his password is something.
Not something you really want to be doing, unless you reset it to a random password, and have them change it upon logging in with the new password.
I don't know if you need to send an email through ssl with gmail, but then again if you use the IIS smtp server, you won't need it either. Assuming you want to continue down that path, here is how to do that
SmtpClient.EnableSsl Property