script email php
Find Who Owns' An Email Address

php script wont send activation email.?
In using PHP Log in Script v2,and its causing me nothing but problems.
it wont sent the activation email or forgotten password email.
the code works on a free-host name but not on a .com/
$message = “Thank you for registering with us. Here are your login details…\n
User ID: $user_name
Email: $usr_email \n
Passwd: $_POST[pwd] \n
Activation code: $activ_code \n
*****ACTIVATION LINK*****\n
http://$host$path/activate.php?user=$md5_id&activ_code=$activ_code
Thank You
Administrator
$host_upper
______________________________________________________
THIS IS AN AUTOMATED RESPONSE.
***DO NOT RESPOND TO THIS EMAIL****
“;
mail($usr_email, “Login Details”, $message,
“From: \”Member Registration\”
“X-Mailer: PHP/” . phpversion());
mail($to, $subject, $message, $headers);
header(”Location: thankyou.php”);
exit();
}
?>
header(”Location: thankyou.php”);
exit();
}
?>
make sure your “send_mail()” is enabled in the PHP.ini and your host supports it. send_mail() works with the mail() function in php.
phpinfo();
?>
and look for send_mail() enable to be set to true or yes if not then you will have to get with your host.
Basic PHP in under 10 minutes
In: Reverse Email Search · Tagged with: email, form, opensource, php, programming
