Jump to content

Can't get mail to work


vincej

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.