sendmailパッケージとphpを使用しています。PHPでmail関数を使用しようとすると、trueが返されますが、何も送信されません。
php設定
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path =/usr/sbin/sendmail -t -i
phpファイル
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 1);
trace(mail('jamie@domain.tld','Testing','test.'));
メーラーログはこれを表示しています
mail() on [/var/www/misc/mail.php:5]: To: jamie@domain.tld -- Headers:
次のようにCLIを介してsendmailを実行します。
echo -e "To: jamie@domain.tld\nSubject: Test\nTest\n" | sendmail -bm -t -v
「Senderok」、「Recipientok」を返します
phpがメールを送信しない原因になっている可能性のあることを知っている人はいますか?