I have a rather annoying/weird problem.
Here is my sacript that I use to send an email:
Code: Select all
$to="me@mysite.com";
$massage="hello, this is a test!";
$from = "someone@somewhere.com";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 7bit\r\n";
$headers .= "From: " . $from . "\r\n";
//SEND THE EMAIL
mail($to,$subject,$message,$headers);My web site (e.g. mysite.com) has a contact form using the above script.
When a message is sent from this script to me@mysite.com, I do not receive anything at all.
However, when the same script is used to send an email to me@mysite.com, BUT from a different domain i.e. anothersite.com, I receive the message just fine.
Any ideas why this may happen?
I know it could be a number of things, but would appreciate a few pointers.
Cheers[/b]