title: PHP Mail function and foreign domains
body: <p>PHP Mail function seems to have issues sending emails TO: @domain.edu.ag.  Does the function support foreign domains?</p>
  
  <p>The domain is hosted on Google Apps so mail should be received in the same way.  No messages are in SPAM which lead me to explore further.  So I created a test script to send mail, and noticed that mail doesn't seem to be sending.</p>
  
  <p>This is what I used for testing purposes:</p>
  
  <pre><code>&lt;?php
      $to = "mymail@domain.edu.ag,mymail@gmail.com";
      $subject = "Hi!";
      $body = "Hi,\n\nHow are you?";
      if (mail($to, $subject, $body)) {
      echo("&lt;p&gt;Message successfully sent!&lt;/p&gt;");
      } else {
      echo("&lt;p&gt;Message delivery failed...&lt;/p&gt;");
      }
      ?&gt;
  </code></pre>
  
  <p>The result was that the @gmail message was received but not the @edu.ag email address.  What's going on here?  There are not errors or anything and mail is received just fine from other senders.</p>