Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i'm using debian & apache.

if i install sendmail, the php mail() function works perfectly. but else i install exim4, the php mail() function does nothing.

i have changed the php.ini editing the sendmail_path, but i can't send mails (i'm trying sendmail -t -i, sendmail -t and exim4 but any works)

any solution idea? thanks!

share|improve this question

1 Answer 1

If you drop in Exim as a replacement for sendmail you should be using /usr/lib/sendmail as the path.

Try testing the command you are using from the command line. This should tell you if you have problems with the command or the problem is between PHP and Exim. Also check the log file /var/log/exim/maillog to see if there is any indication you are getting the message though to Exim.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.