php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3805 Bad sendmail config in default php.ini-dist
Submitted: 2000-03-10 16:30 UTC Modified: 2000-03-19 18:07 UTC
From: sean at bebits dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0 Beta 4 Patch Level 1 OS: FreeBSD 3.3-RELEASE
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
2 + 47 = ?
Subscribe to this entry?

 
 [2000-03-10 16:30 UTC] sean at bebits dot com
In the default .ini file php.ini-dist there is a line that reads as follows:

sendmail_path   =       ;for unix only, may supply arguments as well (default is sendmail -t)

The problem with this line is that it is *not* commented out.  So, when you copy this default file to /usr/local/lib/php.ini and try to use the mail() function, it doesn't work because it's trying to use a sendmail path of "".  Simply putting a semicolon in front of this line causes PHP to go back to using it's default and then things work much better.

Hopefully this makes sense.  This caused me great confusion for awhile.  :-)

Keep up the great work!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-19 18:07 UTC] rasmus at cvs dot php dot net
Fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 08:01:35 2025 UTC