CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 SOLVED - Forgot password

Print topic Send  topic

Author Message
kescott


Posts: 49
Posted: 08/11/2008, 8:42 AM

I want to create a forgot password link that will redirect the user to a web page where enters the email address and clicks SUBMIT. The password is email to the user.

Do you do this the same way sendmail is setup?

Here's one example of my code for Button_Click event. How would I change it to look up the password for the entered email address?


//Button Button_Insert Event BeforeShow. Action Send Email @28-FDE17269
{System.Web.Mail.MailMessage message=new System.Web.Mail.MailMessage();
message.From = "kevin@core.com";
message.To = "kevin@core.com";
message.Subject = "This is the subject";
message.Body = "This is the text from body of the document";
message.BodyFormat = System.Web.Mail.MailFormat.Text;
System.Web.Mail.SmtpMail.SmtpServer = "smtp.core.com";
System.Web.Mail.SmtpMail.Send(message);}
_________________
B.S. of Computer Science
Class of 2005
Norfolk State University
Norfolk, VA
http://www.nsu.edu
View profile  Send private message
AreYouSerious

Posts: 2
Posted: 08/11/2008, 1:43 PM

You've been helped. Read the replys in the thread containing your previous post - four posts below this post.

Someone answered your question and posted sample code.

Look for the piece of code that contains the action/result your asking about.

Clue: You said, "... look up the password...".
View profile  Send private message
kescott


Posts: 49
Posted: 08/11/2008, 2:20 PM

:-/
Thanks for reply to my post. Who replied to my post?

I would love to know how to do this.

_________________
B.S. of Computer Science
Class of 2005
Norfolk State University
Norfolk, VA
http://www.nsu.edu
View profile  Send private message
AreYouSerious

Posts: 2
Posted: 08/11/2008, 2:54 PM

Are you asking me to read you the previous thread?

It can be found here:

http://forums.yessoftware.com/posts.php?post_id=85550

View profile  Send private message
kescott


Posts: 49
Posted: 08/11/2008, 3:02 PM

Sir,
I understand you are not a novice. I appreciate you trying to assist me. I'm not asking you read my replies. I would like you to tell me the title of the previous post, because obviously I don't see it.

:-)

If you are talking about the forum titled:
Help adding "Forgot Password" to Login form (email password to user)

That's all you had to reply with. Do you know how to write the code in C#.NET?

If you don't want to help that's fine.
_________________
B.S. of Computer Science
Class of 2005
Norfolk State University
Norfolk, VA
http://www.nsu.edu
View profile  Send private message
tsgroman


Posts: 64
Posted: 08/13/2008, 12:28 PM

Quote :
If you don't want to help that's fine.

You're not asking for help. You're asking someone to do it for you. There is a difference and there is a better place for you to post your query:

http://forums.yessoftware.com/forum.php?forum_id=20

Regardless...

I posted a code block that does what you're asking in the thread you referenced above.

It's written in VB, but should require only a few basic changes in C#. Any keywords you're unfamiliar with will be explained at http://msdn.microsoft.com/en-us/vcsharp/default.aspx

Is there a reason you're using C#, without knowing C#?
View profile  Send private message
kescott


Posts: 49
Posted: 09/09/2008, 10:49 AM

I figured early, but didn't change the status

string s_email;
string thePassword;
string theUsername;
s_email = NewRecord1s_email.Text;
thePassword = (new TextField("",Settings.vid_connectionDataAccessObject.ExecuteScalar("SELECT password FROM Logins WHERE email = '" + s_email + "'"))).GetFormattedValue();
theUsername = (new TextField("",Settings.vid_connectionDataAccessObject.ExecuteScalar("SELECT login FROM Logins WHERE email = '" + s_email + "'"))).GetFormattedValue();
{System.Web.Mail.MailMessage message=new System.Web.Mail.MailMessage();
message.From = "ccss.id.mgmt@core.com"; message.To = NewRecord1s_email.Text;
message.Subject = "Core CCSS ID Management System :: ALERT :: Password Retrieval";
message.Body = "Dear User: " + theUsername + "\n\n"; message.Body = message.Body + "Your password is: "+ thePassword +"\n\n\n";
message.Body = message.Body + "Login to your account at - http://ccss.core.com/vidmanagement/Login.aspx";;
message.BodyFormat = System.Web.Mail.MailFormat.Text;
System.Web.Mail.SmtpMail.SmtpServer = "smtp.core.com";
System.Web.Mail.SmtpMail.Send(message);}
_________________
B.S. of Computer Science
Class of 2005
Norfolk State University
Norfolk, VA
http://www.nsu.edu
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.