php mail not working on win98

I am getting this error on win98:

Warning: mail() [function.mail]: Failed to connect to mailserver at
"localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini
or use ini_set() in

I have amended local smtp host in php.ini to that of my isp but getting
the same errors I am using php 5, apache 2.0.59 and mysql 4.1, is there a
solution to this php mail error in windows?
Gonzosez [ Di, 31 Juli 2007 01:44 ] [ ID #1783003 ]

Re: php mail not working on win98

On Tue, 31 Jul 2007 01:44:47 +0200, Nospam <nospam [at] home.com> wrote:
> I am getting this error on win98:
>
> Warning: mail() [function.mail]: Failed to connect to mailserver at
> "localhost" port 25, verify your "SMTP" and "smtp_port" setting in
> php.ini
> or use ini_set() in
>
> I have amended local smtp host in php.ini to that of my isp but getting
> the same errors I am using php 5, apache 2.0.59 and mysql 4.1, is there
> a
> solution to this php mail error in windows?

This has nothing to do with SQL, follow-up set to alt.php only.

Did you restart the server after these changes?

Also, as always, sometimes there are a lot of php.ini files around. Verify
wether you edited the right one by checking phpinfo(); for the current
settings. If it doesn't show, near the top it will show you the actual
path to the php.ini file used. If you still get the message that
connecting to the 'localhost' SMTP server (I assume you're not your own
ISP :P), the change isn't picked up.
--
Rik Wasmus
luiheidsgoeroe [ Di, 31 Juli 2007 01:54 ] [ ID #1783004 ]

Re: php mail not working on win98

On Tue, 31 Jul 2007 01:44:47 +0200, Nospam <nospam [at] home.com> wrote:
> I am getting this error on win98:
>
> Warning: mail() [function.mail]: Failed to connect to mailserver at
> "localhost" port 25, verify your "SMTP" and "smtp_port" setting in
> php.ini
> or use ini_set() in
>
> I have amended local smtp host in php.ini to that of my isp but getting
> the same errors I am using php 5, apache 2.0.59 and mysql 4.1, is there
> a
> solution to this php mail error in windows?

This has nothing to do with SQL, follow-up set to alt.php only.

Did you restart the server after these changes?

Also, as always, sometimes there are a lot of php.ini files around. Verify
wether you edited the right one by checking phpinfo(); for the current
settings. If it doesn't show, near the top it will show you the actual
path to the php.ini file used. If you still get the message that
connecting to the 'localhost' SMTP server (I assume you're not your own
ISP :P), the change isn't picked up.
--
Rik Wasmus
luiheidsgoeroe [ Di, 31 Juli 2007 01:54 ] [ ID #1783015 ]

Re: php mail not working on win98

Post removed (X-No-Archive: yes)
Notifier Deamon [ Di, 31 Juli 2007 19:19 ] [ ID #1783016 ]
PHP » alt.php » php mail not working on win98

Vorheriges Thema: "Premature end of script headers: php.cgi"
Nächstes Thema: mssql connect