Bug #15524 Updated: mail() fails if invoked from a root directory script
| From: | ibasevitch at hotmail dot com | Date: | Tue, 05 Mar 2002 14:10:54 +0000 |
| Subject: | Bug #15524 Updated: mail() fails if invoked from a root directory script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1684@lists.php.net to get a copy of this message | ||
ID: 15524
Updated by: ibasevitch@hotmail.com
Reported By: jcelle@cforj.com
Status: Open
Bug Type: Mail related
Operating System: windows nt 4.0 server sp6a
PHP Version: 4.1.1
New Comment:
I also have a problem on win nt 4.0 terminal server edition.
mail function doesn't work becasue there is a problem finding the ini
file..
thanks
Previous Comments:
------------------------------------------------------------------------
[2002-02-14 05:22:28] jcelle@cforj.com
Trying to narrow a bit more this misbehaviour I used Website 3.1.11
(now from Deerfield) succesfully, meaning thus that it is certainly the
previous 2.4 version of Website that causes the problem.
A workaround for those who cannot upgrade to version 3.x of Website is
to place such scipts in a subdirectory of the site-root directory.
------------------------------------------------------------------------
[2002-02-12 13:00:07] elixer@php.net
reclassify
------------------------------------------------------------------------
[2002-02-12 10:37:46] jcelle@cforj.com
- web server is O'Reilly website 2.4.
- test.php contains following script :
mail( "jcelle@cforj.com", "TEST", "Hello World", "From:
postmaster@cforj.com" );
- this file is duplicated so that it is in two directories :
1/ first directory = c:\www and corresponds to root directory of the
web site www.cforj.com.
-> from there (http://www.cforj.com/test.php) the script fails (mail()
returns FALSE.
2/ second directory is a sub-directory c:\www\more and when acccessed
through http://www.cforj.com/more/test.php the
mail() function do
work.
I don't know where to investigate from there. In case 1/ the SMTP logs
show no attempt of connection at all while in case 2/ I can clearly see
the complete SMTP conversation.
This is wether a Website (O'Reilly) problem or a PHP problem.
I tried to turn PHP error reporting to its max but got no information.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15524&edit=1