title: sendmail in Mac OS X Yosemite
body: <p>I use the XAMPP stack for web development. I followed <a href="http://blog.anupamsg.me/2012/02/14/enabling-postfix-for-outbound-relay-via-gmail-on-os-x-lion-11/" rel="noreferrer">this tutorial</a> a while ago to set my machine up to send mail from the localhost. This worked flawlessly under OS X Mavericks, but Yosemite seems to have broken it.</p>
  
  <p>I have tried all of the troubleshooting methods in the linked post to no avail and created this small <code>PHP</code> file in order to test them. This outputs <code>false</code> on my machine.</p>
  
  <pre><code>&lt;?php
      error_reporting(-1);
      ini_set('display_errors', 'On');
  
      $headers = array("From: from@example.com",
      "Reply-To: replyto@example.com",
      "X-Mailer: PHP/" . PHP_VERSION
      );
      $headers = implode("\r\n", $headers);
      $didhappen = mail('myemail@email.com', 'test', 'test', $headers);
  
       if($didhappen) {
          echo 'true';
       } else {
          echo 'false';
       }
  ?&gt;
  </code></pre>
  
  <p>I can still send mail using the terminal, for instance, if I run the command <code>mail example@gmail.com</code> my machine will send the email from my personal gmail address (the one I configured for the localhost) and it would show up in example@gmail.com's inbox. However, whenever I use the mail function in PHP the emails never arrive and are maybe never sent.</p>
  
  <p>I think the problem lies within sendmail, It has generated some crash reports like this...</p>
  
  <pre><code>10/19/14 6:42:09.407 PM ReportCrash[13377]: Saved crash report for sendmail[13376] version ??? to /Library/Logs/DiagnosticReports/sendmail_2014-10-19-184209_Trevors-MacBook-Pro.crash
  </code></pre>
  
  <p>Any ideas on what Yosemite might have broken? Or has anyone else had this problem?</p>