My PHP script for the sending of an activation email is not working, when it should.
The script is:
$to = $email;
$subject = \"DC- Catalyst Activation Email\";
$body = \"Hello there $username
Your activation key for DC-Catalyst is $code\";
$header = \"From: activation@dc-catalyst.x10.mx\";
if (!mail($to, $subject, $body, $header)) {
echo(\"<p>Activeation email succesfully sent!<p>\"); //What to display if it\'s successfully sent
} else {
echo(\"<p>Message delivery failed...</p>\"); //What to display if it\'s not successfully sent
}
Thanks.


LinkBack URL
About LinkBacks

