Hi,
When people register,they will have their own username and password.In order to 
active their account,they have to go to their email acct to click the link to 
active pages.
Here is my source code:
// send a message to the user's email account with a verification link        
$subject = 'BarterJunk.com account activation for ' . $username;            // 
header of the verification email message        $header  = 'From: [EMAIL 
PROTECTED]' . "\r\n" .                   'Reply-To: [EMAIL PROTECTED]' . "\r\n" 
.                    'X-Mailer: PHP/' . phpversion();            // text of the 
verification email message        $verification_message =        
"{$username},\n\n" .        "Please visit the link below to activate your new 
BarterJunk.com account.\n\n" .        
"http://www.barterjunk.com/?activation_code="; . $user_data['activation_hash'] . 
"\n";            // send the message        mail( $email, $subject, 
$verification_message, $header );
 
It works,but it takes very long time.After people submit all their 
information,they will get verification email after 20-30 minutes.I use hotmail 
to test
 
Any better solution?
 
Thanks!
 
chad
_________________________________________________________________
Make distant family not so distant with Windows Vista® + Windows Live™.
http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to