Index: [Article Count Order] [Thread]

Date:  Fri, 3 Aug 2007 15:42:15 +0200
From:  Michael Stauber <bq (at mark) solarspeed.net>
Subject:  [coba-e:10529] Re: PHP (not) sending mails after migration
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200708031542.16332.bq (at mark) solarspeed.net>
In-Reply-To:  <46B32423.30766.608162@localhost>
References:  <46B32423.30766.608162@localhost>
X-Mail-Count: 10529

Hi Martyn,

> I recently moved a site from a RaQ550 onto a CentOS/BQ4.7 box.
> The site uses PHP to generate emails - which have now stopped.
> Path to sendmail in php.ini is fine.
>
> Is there some generic way of fixing this?

Edit php.ini and find the line that starts with ...

sendmail_path = ....

If it's commented out, remove the leading ";" and change it to this:

sendmail_path = /usr/sbin/sendmail -t -i -f admin

After the change restart Apache:

/etc/init.d/httpd restart

That should fix it.

-- 
With best regards,

Michael Stauber
http://www.solarspeed.net