PHP mail from prompt
Posted on 2014-04-15
mail command works from PHP web script but not when I run it from prompt.
I run it by root and everything else in the script is working well, including updating database, etc.
Running CentOS with PHP 5.2.7
Here is php.ini mail dump:
# /usr/bin/php -i | grep -i mail | more
mail.force_extra_parameters => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
Path to sendmail => /usr/sbin/sendmail -t -i
MAIL => /var/spool/mail/root
_SERVER["MAIL"] => /var/spool/mail/root
_ENV["MAIL"] => /var/spool/mail/root