ID:               26480
 Updated by:       [EMAIL PROTECTED]
 Reported By:      kevin dot davies at iinet dot net dot au
-Status:           Closed
+Status:           Bogus
 Bug Type:         Mail related
 Operating System: Windows 2000
 PHP Version:      4.3.4
 New Comment:

Since it wasn't a bug in PHP, Status => Bogus


Previous Comments:
------------------------------------------------------------------------

[2003-12-01 01:21:55] kevin dot davies at iinet dot net dot au

The permissions in windows do not automatically allow access to ini
files in the c:\winnt directory. You need to specifically go into the
security settings of the file, make sure inherited permissions is
ticked and you MUST click apply. 

This has been a bane of running PHP under windows. I should be put into
the configuration guide for php that any new php website needs to have
the default inherited permissions applied or all sorts of things do NOT
work.

File permissions under windows NT are not automatic and MUST be
checked.

------------------------------------------------------------------------

[2003-12-01 01:12:07] kevin dot davies at iinet dot net dot au

The discussion thread
http://www.nukescripts.net/modules.php?name=Forums&file=viewtopic&p=3627#3627
describes how this bug was found. You can refer to it for more details
of this bug.

------------------------------------------------------------------------

[2003-12-01 01:07:02] kevin dot davies at iinet dot net dot au

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 this bug report at http://bugs.php.net/?id=26480&edit=1

Reply via email to