Page 1 of 1

php mail() function not working

Posted: Thu May 01, 2008 5:27 am
by Martin
Hi folks,

Plesk 8.3, Cent OS 5, PHP 5.2.5

This is a new server with a relatively fresh os and plesk install and the mail() function in php doesn't work on it. It's returning a false value. I've had a hunt around and from what I can gather this is something to do with security. Using something like phpmailer I can send mail fine but I have rather a lot of client scripts using mail() that I do not want to have to start tampering with.

Can anyone recommend anything to get this working or to investigate further?

Thanks,
martin

Posted: Thu May 01, 2008 8:28 am
by breun
Have you checked your logs?

Posted: Thu May 01, 2008 8:31 am
by Martin
Which logs?
There is nothing in the maillog - it isnt getting that far.

Posted: Thu May 01, 2008 8:40 am
by breun
PHP errors are logged to the webserver log. Check the domain's error_log or enable display_errors in your PHP script to see the errors in your browser.

Posted: Thu May 01, 2008 8:44 am
by Martin
Nothing in the error_log - it isn't a php error as such - there's nothing wrong with the scripts.

Posted: Thu May 01, 2008 8:50 am
by scott
are you using ASL?

Posted: Thu May 01, 2008 8:55 am
by Martin
Hi Scott,
No I'm not. I'm using a lot of the art yum packages - for example the php etc but I dont have an asl sub.
I'm a bit puzzled by this since it is really a fairly virgin installation of the os and plesk - not been much tweaking done at all.