ID: 22378 User updated by: kris at aethiamud dot org Reported By: kris at aethiamud dot org -Status: Feedback +Status: Open Bug Type: *Mail Related Operating System: Windows XP PHP Version: 4.3.0 New Comment:
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' Previous Comments: ------------------------------------------------------------------------ [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