From: kris at aethiamud dot org
Operating system: Windows XP
PHP version: 4.3.0
PHP Bug Type: *Mail Related
Bug description: "sendmail_from" not set in php.ini or custom "From:" header
missing
Although I have found a few existing threads with this problem, none seem
to address the core issue. Basically, the "[mail function]" section of my
php.ini file is NOT being read at all! When a forum script I was using
gave me an error when it tried to send an email to a newly registered
user, I tried every solution I could think of, then every solution I could
find at php.net and using google. I then tried my phpinfo.php page
(http://www.aethiamud.org/phpinfo.php), which basically just contains the
line:
<?php
phpinfo();
?>
And this is what it listed for the mail function entries:
sendmail_from no value no value
sendmail_path no value no value
SMTP localhost localhost
I then checked my php.ini file (which is in my windows directory, properly
named), and here is what it says:
[mail function]
; For Win32 only.
SMTP = smtp.aethiamud.org
; For Win32 only.
sendmail_from = info@aethiamud.org
; For Unix only. You may supply arguments as well (default: "sendmail -t
-i").
;sendmail_path =
The only solution I could find related to the php.ini file somehow not
being read at all. That was my first thought, so I tested that theory by
changing the 'register_globals' setting from 'off' to 'on', then I
restarted the webserver and reloaded the phpinfo.php page. Lo and behold,
register_globals changed from 'off' to 'on'. Therefore, the php.ini file
IS in the right place, and it IS being read. However, the [mail function]
section does not appear to be. My email server is configured and
functioning properly, and works with the cgi-bin version of sendmail just
fine, so that can't be it either.
I'm fresh out of ideas here! Is this a bug, or just something that I'm
not seeing? Any help you could provide would be very much appreciated
:)
--Kris
--
Edit bug report at http://bugs.php.net/?id=22378&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22378&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22378&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22378&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22378&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22378&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22378&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22378&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22378&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22378&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22378&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22378&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22378&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22378&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22378&r=gnused