php.ini SMTP setting ignored

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
jamesm6162
Forum Newbie
Posts: 13
Joined: Sat Jun 28, 2008 10:31 am

php.ini SMTP setting ignored

Post 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
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: php.ini SMTP setting ignored

Post 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?
Post Reply