Hello again, i just made a script that sends an email when a person first registers on my site, it's just a pleasantry little email saying hey basically.
However when im trying to make it work, it won't come up with any error messages, but i never receive the mail. Could someone please take a look at this...
$to = $email;
$subject = "Welcome to ...";
$body = "Hello, and thank you for registering for my game, ...<br />, just go back to the website to login and start playing!<br /> I look forward to seeing you.<br />Regards, The .. team";
$headers = "From: webmaster@mysite.co.uk\n";
mail($to,$subject,$body,$headers);
header("Location: home.php");
And i have set $email with the value of the person there.
And the worst part is, i have made it work before!
Thanks in Advance,