I am testing my register script but the mail function is not working.
here is the script I am using.
$to = $email;
$headers = "From: <admin@ibtlalc.co.cc>";
$subject = "Activate Your ibtlalc Account";
$server = "mail.ibtlalc.co.cc";
ini_set ('SMTP', $server);
$body="
Dear $name,
bla blah blah
Thank you again,
Scott Page";
$mail = mail($to, $subject, $body, $headers);
if ($mail){echo "yay";}
The script doesn't echo anything.
This script has worked in the past but it doesn't now. PLEASE HELP.
Please note, the $email value is set by the user.
here is the script I am using.
$to = $email;
$headers = "From: <admin@ibtlalc.co.cc>";
$subject = "Activate Your ibtlalc Account";
$server = "mail.ibtlalc.co.cc";
ini_set ('SMTP', $server);
$body="
Dear $name,
bla blah blah
Thank you again,
Scott Page";
$mail = mail($to, $subject, $body, $headers);
if ($mail){echo "yay";}
The script doesn't echo anything.
This script has worked in the past but it doesn't now. PLEASE HELP.
Please note, the $email value is set by the user.