From: kevin dot davies at iinet dot net dot au
Operating system: Windows 2000
PHP version: 4.3.4
PHP Bug Type: Mail related
Bug description: mail function does not recognise php.ini settings
Description:
------------
If you try to use mail() under Windows 2000/IIS5 you get a warning. If you
add the following lines to the top of your php file the warning goes
away.
ini_set("sendmail_from", "[EMAIL PROTECTED]");
ini_set("SMTP", "192.168.1.1");
It appears that mail() is not reading php.ini settings. The ini file was
correct and duplicated in c:\winnt\php.ini and c:\php\php.ini and it made
no difference.
Reproduce code:
---------------
<?php
mail("[EMAIL PROTECTED]","Hello","Blah Blah");
?>
Expected result:
----------------
It should work without errors.
Actual result:
--------------
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:"
header missing in \modules\Your_Account\index.php on line 680
--
Edit bug report at http://bugs.php.net/?id=26480&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26480&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26480&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26480&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26480&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26480&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26480&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26480&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26480&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26480&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26480&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26480&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26480&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26480&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26480&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26480&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26480&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26480&r=float