Re: email confirmation
| From: | Stephen | Date: | Fri, 15 Aug 2003 10:03:23 +0000 |
| Subject: | Re: email confirmation | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-21159@lists.php.net to get a copy of this message | ||
Just a minor point...
You are creating $msg before you have made the confirmation ID. This means
your message does not contain the confirmation id as it has not been
created...
Stephen
----- Original Message -----
From: "Anthony Ritter" <tony@gonefishingguideservice.com>
To: <php-windows@lists.php.net>
Sent: Friday, August 15, 2003 3:18 AM
Subject: [PHP-WIN] email confirmation
> /*process_a.php: which receives the name and email variables. The script
> then tries to then send the note back to the user with a link - called
> CLICK. When the user hits the link to email_verify.php the email address
is
> inserted into the database*/
>
> <?
> $msg = "Thank you for registering $name\n\n";
> $msg .= "<a
>
href=tony@gonefishingguideservice.com/email_verify.php?email=$email&confirma
> tion_ID=$confirmation_ID>CLICK</a>";
> $secret_variable = "something_only_you_know";
> $confirmation_ID = md5($email.$secret_variable);
> $to="tony@gonefishingguideservice.com";
> $subject="Thank you for registering";
> $mailheaders="From: Us";
> mail($to,$subject,$msg,$mailheaders);
> ?>