title: Have php mail() function output to a local file instead of using SMTP
body: <p>I'd like to create an alternative sendmail.php file where instead of having to go through a server, a php mail() call gets appended to a local file, so that we can verify a mail() call is made and that it goes to the appropriate e-mail addresses.</p>
  
  <p>I'm working on an installation of MAMP, but I think this could be applied across multiple local installations, and that's my hope - we've got all types of operating systems in my group.</p>
  
  <p>This site:  <a href="http://www.drupal4hu.com/node/55makes" rel="nofollow">http://www.drupal4hu.com/node/55makes</a> me think it shouldn't be to difficult, but I think they were running the script from a live server, and it throws errors when I try it on my local machine.  The most frequent error:</p>
  
  <pre><code>dyld: Symbol not found: __cg_jpeg_resync_to_restart
  </code></pre>
  
  <p>doesn't seem relevant - some other obscure problem may have been causing that.</p>
  
  <p>I'm  played around with editing the php.ini file, and I'm aware that I could direct everything through an SMTP server, but I'd rather not risk having someone (myself included) send e-mails to real people while we're testing.</p>
  
  <p>Any ideas?  Thanks!</p>