Sending mail from PHP with exim4

Posted by jfoucher on Server Fault See other posts from Server Fault or by jfoucher
Published on 2010-11-08T11:11:32Z Indexed on 2010/12/28 20:55 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

Hello, A web server I manage is having problems sending mail from PHP. This server uses exim4 for MTA, and it is configured correctly.

I can send emails from PHP's CLI, but not from the web. i.e. if I do "php mailtest.php" on the command line, the email gets sent correctly, but if I browse to server.com/mailtest.php, mail() returns false and the email never gets sent. Nothing appears in the exim mainlog.

Any advice, or things I should look for ?

Thanks!

© Server Fault or respective owner

Related posts about php

Related posts about email