Page 1 of 1

php.ini SMTP setting ignored

Posted: Fri Dec 11, 2009 10:49 am
by jamesm6162
Hi

I have a local installation of Apache + PHP on my Windows 7 machine.
When setting the SMTP directive in the php.ini file to some remote server, the php server ignores it and instead still tries to access localhost as an SMTP server.
The remote server I am trying to use does exist, and it works on my other machine, but for some reason, even after several server and computer restarts it simply ignores the value I set.
It definitely is the correct php.ini file as it show it in the phpinfo() and any other settings that I change in there are effective.

What could possibly cause this?

Thanks in advance

Re: php.ini SMTP setting ignored

Posted: Sun Dec 13, 2009 3:25 pm
by Darhazer
How you know it still tries to access localhost? Maybe it's just unable to use the remote server. Is the remote server configured to accept mail without username and password?