vincej Posted April 2, 2009 Share Posted April 2, 2009 Hi All, I am using XP pro and Apache http server 2.2 . I have a simple script using mail_function. It appears to work fine at code level BUT no actual emails leave my local dev. environment. The Apache error code says I have a PHP.ini problem - as below: [Thu Apr 02 15:53:46 2009] [error] [client 127.0.0.1] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\sendemail2.php on line 36, referer: http://127.0.0.1:8080/sendemail2.php BUT I have checked my php.ini file and I have uncommented the localhost and port 25. I have checked this forum can not see anyone having had this problem. All advice is very gratefully received. thanks Vincej Link to comment https://forums.phpfreaks.com/topic/152308-cant-get-mail-to-work/ Share on other sites More sharing options...
jonsjava Posted April 2, 2009 Share Posted April 2, 2009 you need to have a mail server going. try out MercuryMail. it's free. Link to comment https://forums.phpfreaks.com/topic/152308-cant-get-mail-to-work/#findComment-799877 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.