Page 1 of 1

Localhost Problems

Posted: Sat Nov 06, 2004 4:11 pm
by Stelios
Hello guys,

Am trying to test a script locally which is supposed to email something to people and when am trying to send it am getting the following error:

Failed to connect to mailserver at "smtp.localhost.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

I have set the smtp on php.in as smtp=smtp.localhost.com and I have run phpinfo to confirm that is looking at localhost and port 25. I have just changed the httpd.conf server to become localhost as well. I dont have any firewalls running either.

Any ideas for this?

Posted: Sat Nov 06, 2004 5:55 pm
by rehfeld
theres no such thing as localhost.com

try just localhost

do you have a mail server on your local box? is it running?

Posted: Sat Nov 06, 2004 7:00 pm
by Stelios
To be honest with you no, I dont have one, how can I make it happen? Sorry if my question sounds stupid, but I am quite new to the whole thing.

Posted: Sat Nov 06, 2004 7:05 pm
by markl999
If you're on windows just set the smtp to your ISP's mail server (the one you'd use for outlook etc..)
If you're not on windows then post back with more info on your operating system etc. ;)

Posted: Sat Nov 06, 2004 7:06 pm
by Stelios
Did it already and it worked!THANKS A LOT :D