MichaelShanks

Well-Known Member
PartnerNOC
Aug 20, 2001
104
0
316
one server php mail() function isn't working,

i've tried everything fromr ecompiling apache to reinstalling exim, there is no phpsuexec or smtp tweaks yet it still fails to send, it sends fine when run via the cli,

any ideas?
 
Aug 25, 2003
11
0
151
Don't know if this is much help, but...

Look for errors:
- /var/log/maillog
- /usr/local/apache/logs/error
- Displayed or logged PHP errors

In particular, do 'tail -f' on a log file, then run the script with mail(), and see if you catch the problem.

If I read this right, you have a PHP script with mail() in it that works when you run it on the command line but not in a browser? That sounds like a problem with Apache and/or permissions for the Apache user (nobody)?