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...
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.