Re: Always enable mail() function

From: Date: Tue, 10 Jul 2007 22:22:55 +0000
Subject: Re: Always enable mail() function
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-30754@lists.php.net to get a copy of this message
The same as if you configure sendmail_oath wrong or move you binary to a host where it is missing: mail() returns false.
I think it's a correct approach - the fact that sendmail wasn't installed (or installed incorrectly maybe) on build machine shouldn't prevent PHP from sending mail of production machine. If production machine doesn't have sendmail - mail() would fail as would any other function, such as database connection, when environment is not set up correctly. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#30754) next »