php mail() function not working

Support/Development for PHP
Martin
Forum User
Forum User
Posts: 11
Joined: Fri Jun 16, 2006 8:07 am

php mail() function not working

Unread post 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
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Have you checked your logs?
Lemonbit Internet Dedicated Server Management
Martin
Forum User
Forum User
Posts: 11
Joined: Fri Jun 16, 2006 8:07 am

Unread post by Martin »

Which logs?
There is nothing in the maillog - it isnt getting that far.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Lemonbit Internet Dedicated Server Management
Martin
Forum User
Forum User
Posts: 11
Joined: Fri Jun 16, 2006 8:07 am

Unread post by Martin »

Nothing in the error_log - it isn't a php error as such - there's nothing wrong with the scripts.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

are you using ASL?
Martin
Forum User
Forum User
Posts: 11
Joined: Fri Jun 16, 2006 8:07 am

Unread post 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.
Post Reply