php mail() function not working

Hi,

We've just upgraded one of our servers to a clean install of 10.5 server. We have various php applications one of which relies heavily on the php mail() function but this function isn't working. I tried writing a very simple mail script to confirm that this is actually the problem.

I can't see anything obviously wrong in php.ini or phpinfo() and the path to sendmail is correct.

Can anyone suggest what I might need to modify in order to get this working?

Thanks,

Xserve, Mac OS X (10.5.4)

Posted on Jul 31, 2008 4:19 AM

Reply
2 replies

Aug 1, 2008 5:34 AM in response to Camelot

Solved now. We are not using Apple Mail server we are using Communigate Pro. In php.ini I had to change:

*;sendmail_path =*

to:

*;sendmail_path = /usr/sbin/CommunigatePro/sendmail -t -i*

Otherwise it used the default sendmail path which was irrelevant as the apple mail server wasn't running. I'm thinking that ideally the CGate Pro installer should have replaced the default path with a sym link. In fact I'm sure it did previously which is why we've never had this problem with other servers before.

Thanks,

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

php mail() function not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.