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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.