I try to use the php mail () function, but I get an error. I installed sendmail through sudo apt-get install sendmail, edited the file /etc/php5/cli/php.ini, adding the following text to these lines:
sendmail_path = /usr/sbin/sendmail -t
sendmail_from = uslonsweb003.ALU@no-reply.com
Then I restarted my web server and used this command for a test:
:~$ php -r "mail('sadmicrowave@gmail.com', 'test subject', 'test body message');"
but I get the following error: EVERYTIME !!!:
sh: -t: not found
This is strange because I tried sendmail_path with -t and without -t, but I still get the same error. What am I doing wrong?
UPDATE! this is what my phpinfo () shows: (I added -t back, but the command does not work with or without it).

Other UPDATE -
sendmail_path sendmail_from, , , mail() , php , , , ( !!). , sendmail mail()...