Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: email problem....plz help


Message #1 by "taherm@f... on Fri, 29 Jun 2001 15:42:01
i have a page called login.asp. the users enter their email address and 

pwd.

there is a option of forgot password so that if a user forgets his 

password then they are diverted to a page where they are asked to enter 

their last name and a password is sent to them automatically.

how does this work plz help me.



Waiting anxsiously for your reply

Message #2 by "Sandra" <slau@p...> on Fri, 29 Jun 2001 19:00:49

When click on the 'Forgot' link then it will take you to another page to 

gather your email and the answer to the secret question. Note that you 

should have a db with fields for their email, answer, and password. 



Then this will take you to a final page that checks your answer. 

If incorrect, it will not send off the email. If correct, it will. 

Emails are sent using the CDO object. If you're asking for code, I suggest 

you attempt to do some of this yourself and then ask for code fragments, 

bec. it's too long to put in a single post.



Best wishes,

Sandra



> i have a page called login.asp. the users enter their email address and 

> pwd.

> there is a option of forgot password so that if a user forgets his 

> password then they are diverted to a page where they are asked to enter 

> their last name and a password is sent to them automatically.

> how does this work plz help me.

> 

> Waiting anxsiously for your reply



Message #3 by "Ahmed Barradah" <havana200@h...> on Fri, 29 Jun 2001 19:19:56



Well, I assume that you have all the users information stored in table. 

So, when the user forgets the password, you will search for the entered 

last name and e-mail in the database and find their password. If they are 

exist then you will send them the password, if they are not then they have 

to login a a new user. If you want to send them the password autumatically 

you can use the object CDONTS to send them an e-mail. This object will 

work under Windows 2000 Server, Windows NT Server, and I believe under 

Windows 2000 Proffessional. I hope this helps.



 Good Luck  



> i have a page called login.asp. the users enter their email address and 

> pwd.

> there is a option of forgot password so that if a user forgets his 

> password then they are diverted to a page where they are asked to enter 

> their last name and a password is sent to them automatically.

> how does this work plz help me.

> 

> Waiting anxsiously for your reply







Message #4 by "Birgitta Dahl" <birgittadahl@y...> on Sat, 30 Jun 2001 12:07:47 +0200
If you have a working SMTP service in IIS but you cant get CDONTS to

work you could try using the filesysobj to write textfiles in one of

the directories under the mailroot. Was it "Drop"? If you're only

sending plain text messages it's easy to format the textfiles.

However, my guess is that this is more trouble than it's worth, I haven't

followed the whole discussion but for some things maybe it's enough.



Regards,

Danny



-----Ursprungligt meddelande-----

Från: Ahmed Barradah [mailto:havana200@h...]

Skickat: den 29 juni 2001 19:20

Till: ASP Web HowTo

Ämne: [asp_web_howto] Re: email problem....plz help









Well, I assume that you have all the users information stored in table.

So, when the user forgets the password, you will search for the entered

last name and e-mail in the database and find their password. If they are

exist then you will send them the password, if they are not then they have

to login a a new user. If you want to send them the password autumatically

you can use the object CDONTS to send them an e-mail. This object will

work under Windows 2000 Server, Windows NT Server, and I believe under

Windows 2000 Proffessional. I hope this helps.



 Good Luck



> i have a page called login.asp. the users enter their email address and

> pwd.

> there is a option of forgot password so that if a user forgets his

> password then they are diverted to a page where they are asked to enter

> their last name and a password is sent to them automatically.

> how does this work plz help me.

>

> Waiting anxsiously for your reply






  Return to Index