ID:               22378
 Updated by:       [EMAIL PROTECTED]
 Reported By:      kris at aethiamud dot org
 Status:           Feedback
 Bug Type:         *Mail Related
 Operating System: Windows XP
 PHP Version:      4.3.0
 New Comment:

Just a note: I tested this with latest STABLE snapshot on my win2k
machine and it works just fine..



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

[2003-02-22 20:09:26] [EMAIL PROTECTED]

Ok, then it looks like a parse problem, or you have a syntax error in
your php.ini file or the settings are not passed through to the php
core.

Try changing a setting _below_ the [mail function] section, like for
instance: mysql.default_port to 4306.

Does that value change? Then we can strike the 'passed through' error.

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

[2003-02-22 17:39:48] kris at aethiamud dot org

Ok I just got what you meant after I hit submit hehe.  I tried adding
that line to the phpinfo.php file, and now it lists the local value as
smtp.aethiamud.org and the master value still as localhost.

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

[2003-02-22 17:34:35] kris at aethiamud dot org

re:

1) Could you tell me how to do that ini_set thing?  I tried a few
variations with the php/cli/php.exe command line, but couldn't figure
out what you meant.

2) I did do the php/cli/php -i and it also displayed the same things;
i.e. 'sendmail_from => no value => no value' and 'SMTP => localhost =>
localhost'

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

[2003-02-22 16:06:50] [EMAIL PROTECTED]

Two things:
1) does ini_set('SMTP', 'smtp.aethiamud.org'); work?

2) does the cli binary also not display these values? (run:
path\to\cli\php -i)

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

[2003-02-22 15:18:41] kris at aethiamud dot org

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 = [EMAIL PROTECTED]

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

Reply via email to