Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: How to add forgot password button Part 2


Message #1 by "Lance Kirby" <lkirby@g...> on Wed, 10 Jul 2002 03:04:10
Ok I have gotten the email script in place but now i am haveing problems 
with putting in the send to line of the email script the users email 
address that they put in the text box in the send to line and in the body 
of the message i am having trouble putting i script to look un the users 
email address from the text bos and insert the users password can anyone 
else help me along here.. This is what the email script look like


set objMail = Server.CreateObjects("CDONTS.NewMail")
objMail.To 
objMail.From ="admin@n..."
objMail.Subject = "Forgotten Password"
objMail.Body = 
objMail.Send
set objMail = nothing

thanks to Sandra for helping me with the email script

Lance
Message #2 by "Paulo Fernandes" <paulofernandes@c...> on Wed, 10 Jul 2002 09:42:32 +0100
Hi,

Have you tried

objMail.to = request.form("email")

where email is the name of the field on the form?

I'm not sure this was your question....

PauloF

-----Original Message-----
From: Lance Kirby [mailto:lkirby@g...] 
Sent: quarta-feira, 10 de Julho de 2002 3:04
To: ASP Web HowTo
Subject: [asp_web_howto] How to add forgot password button Part 2

Ok I have gotten the email script in place but now i am haveing problems

with putting in the send to line of the email script the users email 
address that they put in the text box in the send to line and in the
body 
of the message i am having trouble putting i script to look un the users

email address from the text bos and insert the users password can anyone

else help me along here.. This is what the email script look like


set objMail = Server.CreateObjects("CDONTS.NewMail")
objMail.To 
objMail.From ="admin@n..."
objMail.Subject = "Forgotten Password"
objMail.Body = 
objMail.Send
set objMail = nothing

thanks to Sandra for helping me with the email script

Lance

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

Message #3 by kyle.b.willman@u... on Wed, 10 Jul 2002 07:52:59 -0500
I put this together pretty quick, so please bear with me.  This should be
how you get the password from the DB, where oConn is the connection to the
DB.  Any questions, just email

Dim strSQL
Dim oRS

strSQL = "SELECT * FROM table WHERE UPPER(email) = UPPER(" & request.form
("email") & ")"

Set oRS = Server.CreateObject("ADODB.Recordset")

oRS.Open strSQL, oConn, 3, 1, 1

If oRS.RecordCount > 1 then

      Error:  2 passwords returned

Elseif oRS.RecordCount = 0 then

      Error:  No password returned

End if

--Create EMAIL

objMail.to = request.form("email")
objMail.body = "This is a test: " & oRS("PASSWORD")

Kyle B. Willman
PricewaterhouseCoopers LLP
Office:  xxx.xxx.xxxx
Cell:   xxx.xxx.xxxx


                                                                                                                                    
                      "Paulo Fernandes"                                                                                             
                      <paulofernandes@c...       To: "ASP Web HowTo" <asp_web_howto@p...>                           
                      sernet.com>               cc:                                                                              
                      07/10/2002 03:42 AM       Subject:  [asp_web_howto] RE: How to add forgot password button Part 2              
                                                                                                                                    
                      Please respond to                                                                                             
                      "ASP Web HowTo"                                                                                               
                                                                                                                                    
                                                                                                                                    




Hi,

Have you tried

objMail.to = request.form("email")

where email is the name of the field on the form?

I'm not sure this was your question....

PauloF

-----Original Message-----
From: Lance Kirby [mailto:lkirby@g...]
Sent: quarta-feira, 10 de Julho de 2002 3:04
To: ASP Web HowTo
Subject: [asp_web_howto] How to add forgot password button Part 2

Ok I have gotten the email script in place but now i am haveing problems

with putting in the send to line of the email script the users email
address that they put in the text box in the send to line and in the
body
of the message i am having trouble putting i script to look un the users

email address from the text bos and insert the users password can anyone

else help me along here.. This is what the email script look like


set objMail = Server.CreateObjects("CDONTS.NewMail")
objMail.To 
objMail.From ="admin@n..."
objMail.Subject = "Forgotten Password"
objMail.Body 
objMail.Send
set objMail = nothing

thanks to Sandra for helping me with the email script

Lance

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20




_________________________________________________________________
         The information transmitted is intended only for the person or
         entity to which it is addressed and may contain confidential
         and/or privileged material.  Any review, retransmission,
         dissemination or other use of, or taking of any action in reliance
         upon, this information by persons or entities other than the
         intended recipient is prohibited.   If you received this in error,
         please contact the sender and delete the material from any
         computer.


  Return to Index