this is what i use. hope it helps, addison

/* send email to new member */
        $emess1="Thank you...\n";
        $emess2="Your Member ID and password are:\n";
        $emess3="\n\n\tID:$email\n\tPassword:$password\n\n";
        $emess4="Each time you submit an ad, please use your existing
ID and password.\n\n";
        $emess5="Please e-mail ?@?.com with questions or comments.";
        $emess =
           $emess1.$emess2.$emess3.$emess4.$emess5;
        $ehead="From: ?@?.com\r\n";
        $subject = "this appears in the subject of the email to the
new member";
        $mailsend=mail("$email","$subject","$emess","$ehead");
        header("Location: index.php (where you want them directed
after they sign in. it could be a welcome page.");

Hello people.,

I am developing a website with a user login system, i would like to
send an confirmation e-mail to the user when he/she registers for
the site, asking for confirmation...for instance click on a link to
activate thier account.
My question is what would be the best approach to achieve this? How
is this usualy done? Any thoughts and help is appreciated.

Best regards,

Davy Obdam

--
--------------------------------------------------------------------
Davy Obdam - Obdam webdesignŠ
mailto:[EMAIL PROTECTED]   web: www.davyobdam.com
--------------------------------------------------------------------




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Addison Ellis
small independent publishing co.
114 B 29th Avenue North
Nashville, TN 37203
(615) 321-1791
[EMAIL PROTECTED]
[EMAIL PROTECTED]
subsidiaries of small independent publishing co.
[EMAIL PROTECTED]
[EMAIL PROTECTED]

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to