title: php5 mail() function sendmail error
body: <p>I'm trying to use php's mail() function but keep getting an error.  I've installed sendmail via <code>sudo apt-get install sendmail</code>, edited my <code>/etc/php5/cli/php.ini</code> file adding the following text to these lines:</p>
  
  <pre><code> sendmail_path = /usr/sbin/sendmail -t
   sendmail_from = uslonsweb003.ALU@no-reply.com
  </code></pre>
  
  <p>I then restarted my webserver and used this command for test:</p>
  
  <pre><code> :~$ php -r "mail('sadmicrowave@gmail.com', 'test subject', 'test body message');"
  </code></pre>
  
  <p>but I get the following error EVERYTIME!!!:</p>
  
  <pre><code> sh: -t: not found
  </code></pre>
  
  <p>This is odd because I have tried the sendmail_path with -t and without -t but I keep getting the same error.  What am I doing wrong?</p>
  
  <p>UPDATE! this is what my phpinfo() shows: (I added -t back but the command isn't working with or without it).</p>
  
  <p><img src="https://i.stack.imgur.com/PrzJq.png" alt="enter image description here"></p>
  
  <p>Another UPDATE - </p>
  
  <p>I commented out the sendmail_path and sendmail_from lines to start from scratch expected the mail() function to complain that php doesn't know what it is but instead I get the EXACT same error as before (even without the two lines entirely!!). This leads me to believe that it doesn't have to do with the sendmail program or mail() function at all...</p>