PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
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.