[Watford] PHP - mail() function

Alain Williams addw at phcomp.co.uk
Sun Dec 2 21:49:21 GMT 2007


On Sun, Dec 02, 2007 at 09:29:15PM -0000, walt wrote:
> Hi,
> 
> I cannot get this work.  I followed the instructions, replaced postfix with
> sendmail, set it up and tested it with telnet localhost smtp as well as with
> evolution and mails are sent and received.
> 
> But the PHP mail() function wont work. Dont know where the mail goes either.
> Is there a log somewhere that tells me whether the mail() function has
> attempted to connect to sendmail smtp?
> 
> I have checked the web and this is not unusual, by all accounts.  None of
> the fixes I have seen there work though. If there is way round this I'd like
> to know.

How are you running php mail(), via a web form or interactively ?
If on a web form check the log files. Is error_reporting in your php.ini
set to maximum ?

mail() passes mail to the MTA, is there something in the mail queue ?
What do the MTA logs say ?

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>



More information about the Watford mailing list