Please help me to get a php code that activates users upon registration by sending the activation codes to their specified emails.
Originally posted by Rabbit
Code:
$host = $_SERVER['HTTP_HOST']; $host_upper = strtoupper($host); $login_path = @ereg_replace('admin','',dirname($_SERVER['PHP_SELF'])); $path = rtrim($login_path, '/\\'); $message = "Thank you for registering with us. Your account has been activated... *****LOGIN LINK*****\n http://$host$path/login.php Thank You Administrator $host_upper ______________________________________________________ THIS IS AN AUTOMATED RESPONSE. ***DO NOT RESPOND TO THIS EMAIL**** "; @mail($to_email, "User Activation", $message, "From: \"Member Registration\" <auto-reply@$host>\r\n" . "X-Mailer: PHP/" . phpversion()); echo "Active"; }
Comment