title: puphpet send email ubunutu 12 apache2
body: <p>I am trying to send email to my machine from my puphpet virtual machine and I can't seem to have php send email. If I run </p>
  
  <pre>
  
      vagrant up
      sudo apt-get update
      sudo apt-get install mailutils
  
  </pre>
  
  <p>I can then send email via the vagrant ssh terminal, which works great but I would like to send it to my machine via php's mail function.</p>
  
  <pre>
  
      mail -s "test" me@email.com
      crtl+d
      ctrl+d
  
  </pre>
  
  <p>I am running this script which does not seem to work.</p>
  
  <pre>
  
      $ok = mail('me@domain.com', 'test', 'test');
      var_dump($ok);
  
  </pre>
  
  <p>I have tried installing postfix email and also sendmail. Any ideas as to why php will not send any email...</p>
  
  <p><strong>update</strong></p>
  
  <p>I added this line to my <strong>config.yaml</strong> file in the puphpet folder. I also changed mailcatcher to 0. I then ran vagrant provision again. It works great now, no delay at all, just make sure sendmail/postfix is installed. sudo apt-get install sendmail or postfix</p>
  
  <pre><code>mailcatcher:
      install: '0'
  </code></pre>
  
  <p>farther down...</p>
  
  <pre><code> ini: 
         sendmail_path: '/usr/sbin/sendmail -t -i'
  </code></pre>