Mail(); in PHP doesn't do anything.
Using mail in a shell isn't a problem, so sendmail is working!
PHP doesn't give me any errors (error reporting: ALL)
PHP.ini contains the right path to sendmail. I tried all the options like:
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /var/qmail/bin/sendmail
or
sendmail_path= /var/qmail/bin/qmail-inject
In phpinfo() all the paths are right, but it doesn't mail anything (neither internally or with external mailaddresses)
I check the rights, even chmod 777 on sendmail or qmail-inject doesn't do a thing.
Even this doesn't work:
as root:
# /usr/bin/php -f test.php
and test.php is this:
<?
ini_set('error_reporting', E_ALL);
$mailHeaders = "From: domain.nl <[email protected]>";
$mailSubject = "Test";
$mailBody = "Test body";
$mailTo = "[email protected]";
mail($mailTo, $mailSubject, $mailBody, $mailHeaders);
?>
Is there anyone who knows how to fix this or knows a work-around?
Using mail in a shell isn't a problem, so sendmail is working!
PHP doesn't give me any errors (error reporting: ALL)
PHP.ini contains the right path to sendmail. I tried all the options like:
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /var/qmail/bin/sendmail
or
sendmail_path= /var/qmail/bin/qmail-inject
In phpinfo() all the paths are right, but it doesn't mail anything (neither internally or with external mailaddresses)
I check the rights, even chmod 777 on sendmail or qmail-inject doesn't do a thing.
Even this doesn't work:
as root:
# /usr/bin/php -f test.php
and test.php is this:
<?
ini_set('error_reporting', E_ALL);
$mailHeaders = "From: domain.nl <[email protected]>";
$mailSubject = "Test";
$mailBody = "Test body";
$mailTo = "[email protected]";
mail($mailTo, $mailSubject, $mailBody, $mailHeaders);
?>
Is there anyone who knows how to fix this or knows a work-around?