HELP! - Auto-email Registration Confirmation?

I have a website created in ASP and I would to auto-send an email upon user’s registration, to verify the users info - like the one used here at KIRUPA, when you initially signup.

Here’s an example of what I would like to do:

To complete your registration, click on the link below:
http://www.xyz.com/register.php?a=act&u=xxxxx=xxxxxxx

How do they work? What do I need to accomplish this?

Thanks.

When the user signs up, a random text string is generated and saved along with the users profile in a database. For instance user ‘kaanuki’ and string ‘xyzzy’.

Then an URL is sent to the user, where the user ID and random string is included - http://www.xyz.com/register.asp?user=kaanuki&confirm=xyzzy

In the register.asp script the values are compared to the ones stored in the database and if they match the user is validated.

That way you know that the email address that kaanuki entered when he registered is a valid email address and kaanuki can read mails sent to the address.

Thanks!