PHP mail() function does not work by default
Bug #10656 reported by
Alex Hudson
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php4 (Ubuntu) |
Invalid
|
Medium
|
Thom May |
Bug Description
I have a PHP site which sends emails; unfortunately all calls to mail() return
FALSE (i.e., the mail could not be sent).
/var/log/
sh: line 1: -t: command not found
I had not changed the php.ini for Apache2 from the default setting; I presume
the above error is because it's not running "sendmail -t -i" (the default)
correctly. I have modified postfix slightly; I disabled ipv6 on my machine and
had to remove that interface from master.cf in order for postfix to run
successfully.
Bizarrely, setting the sendmail parameter in php.ini to the "default" (i.e., to
"sendmail -t -i") makes this problem go away.
To post a comment you must log in.
What version of the package are you using? This sounds somewhat similar to bug
#8356.