ccrevcypsys Posted November 7, 2007 Share Posted November 7, 2007 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 D:\Sites\csitechs\orderEmail.php on line 97 Link to comment https://forums.phpfreaks.com/topic/76435-what-exactly-does-this-mean-n00b-question/ Share on other sites More sharing options...
farkewie Posted November 7, 2007 Share Posted November 7, 2007 You are running your server on a windows pc? you need to edit the php.ini and add your SMTP mail server (smtp.yourisp.com) or siomething similar. this only needs to be done on windows . if your running on linux it will work fine. Link to comment https://forums.phpfreaks.com/topic/76435-what-exactly-does-this-mean-n00b-question/#findComment-387084 Share on other sites More sharing options...
tibberous Posted November 7, 2007 Share Posted November 7, 2007 Probably that you don't have a mail server setup on port 25, or that if you do it isn't running right. What you need to do is go to http://www.softstack.com/scrfreesmtp.html and download and install their free smtp server for Windows. After you install it, run the program and you will be able to send mail - if you don't want to screw with your php.ini file, just make sure that you set a From header. Keep in mind that sending from a local machine, a lot of servers (ie: yahoo) will block you, others, like gmail, will send you straight to the spam box. Link to comment https://forums.phpfreaks.com/topic/76435-what-exactly-does-this-mean-n00b-question/#findComment-387085 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.