Home > Archive > PHP SQL > July 2007 > php mail not working on win98
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
php mail not working on win98
|
|
| Nospam 2007-07-30, 7:03 pm |
| 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?
| |
|
| On Tue, 31 Jul 2007 01:44:47 +0200, Nospam <nospam@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
| |
|
| On Mon, 30 Jul 2007 23:44:47 GMT, Nospam 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?
>
>
A lot of Internet providers are restricting the default SMTP port #25. IF you
already switched to your ISP's setting, you might also need to restart your web
server to refresh the information.
Tom
--
Basic Accounts $5.95 / month or $39.95 / 12 months
http://newsguy.com/overview.htm
|
|
|
|
|