PHP Site Will Not Send Mail to Own Domain
<p>I've just added mail to my website hosted and the following is happening with mail: </p>

<ul>
<li>Email sent from private email (i.e. @gmail.com ) to @mydomain.com is received </li>
<li>Email sent from PHP mail() to private mail is received </li>
<li>Email sent from PHP mail() to @mydomain are <strong>NOT RECEIVED</strong> </li>
</ul>

<p>My script that I am testing with is very basic:</p>

<pre><code> $to_address = "example@mydomain.com";
 $subject = "This goes in the subject line of the email!"; 
 $message = "This is the body of the email.\n\n"; 
 $headers = "From: example@mydomain.com\r\n"; 
 mail("$to_address","$subject","$message","$headers");
</code></pre>

<p>Is there a setting I need to change for this to work, or should be looking for? </p>

<p>I have checked junk mail and the mail is not being received there either.</p>