faqts : Computers : Programming : Languages : PHP : Installation and Setup : PHP4

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

25 of 34 people (74%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How do I set up PHP so the mail() function works with qmail?
Why won't the mail() function work with qmail?
mail()

Jan 25th, 2000 17:33
Joyce Park, Nathan Wallace, kaiser M, Sheamus Nulty


Try making qmail's "sendmail" wrapper available to MUAs and leave your 
php3.ini as it was for sendmail.  Here are sample unix commands:

    # ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
    # ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail


The whole sendmail wrapper thing seems pretty pointless to me.  I 
configured php.ini to inject directly into the qmail 
bloodstream:  /var/qmail/bin/qmail-inject.  Works for me.