trouble shooting mail.
Posted on 2010-11-12
I don't receive mail to my home email@example.com address, but I do receive mail at my firstname.lastname@example.org address. I delete the comments // on the address when I test.
Actually I did receive mail at my home address I think twice over the last few days and about 30 tests, but I cannot narrow down the reason. I wonder if it has something to do with a service providers security policy or the php.ini file.
How should I trouble shoot this? Thanks.
//$email = "email@example.com";
$email = "firstname.lastname@example.org";
$to = $email;
$subject = "Your subject";
$message = "Your message \r\n";
$header = "from: your name <email@example.com>";
$sentmail = mail($to,$subject,$message,$header);