Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activate account. 2

Status
Not open for further replies.

Sajtz

IS-IT--Management
Apr 23, 2002
75
EU
Hi.

I´m looking for a script that sends a email after registration to the registrator´s email, which he has to open...and activate the account with a link...

Anyone know hos to do this?
 
When you set up the users' account, I imagine you populate a table(s) with that users' information, leats of which is his/her email address. At that point why don't you also have two more fields, one field that is something like "accountactive" which can be a bit type ( True/False )and another field with a random string of letters and numbers.

Also write up a simple page that will request variables in a URL. Now, when you send the user his/her verification email with a url to click on...it will have the unique identifier in the URL.

When the user clicks on the URL, the page you wrote will search DB for that unique identifier, and update the accountactive flag to True or 1 .

You could otherwise place another random password in the email, and when the user clicks on the URL, must submit that temporary activation password. That would also work.

Hope that Helps

JP _______________________________________________
OutsideIntranets.com
Stop wasting time, get to work
 
Thanks JP, this sounds lika a good idea. But I need to know how to automatically send this verification email to the subscribers address. I'm using IIS 5 webserver... is there any asp code or built in application that can send email?
 
are you running xp or 2k? 2k i think has Cdonts (which is a component for sending e-mail. Xp doesn't, but if you can find the cdonts.dll file (on the web) then you can register it using regsvr32. Try looking for Cdonts examples in google to get an idea of how to send e-mail using ASP & cdonts.
 
craigey, Im using win2000 server.. I'll try to find information about cdonts. Thanks
 
check out
It explains what you want to do and more, including blocking e-mail's from people who try to do multiple sign ups. validating e-mail address's (although there are some better examples on this forum. I think Xutopia posted a very good one using common expresions, not too long ago).

Basically check out the above site and search for common expressions here.

Good luck!
 
Craigey.

Thnxs for your reply. Unfortunately the URL doesn´t work for me. Is it miss-spelled or is perhaps down?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top