blog posts

databases (1) django (1) drupal (2) java (4) processing (7) wamp (1) yahoo pipes (1)

Friday, 21 January 2011

php email problem on windows machine localhost

what to do if you get this error message
arning: 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 C:\wamp\www\phpdev\report.php on line 39

1. to fix this problem you need to change the smtp settings (simple mail transfer protocol)
2. look at the php.ini file at this location wamp/Apache2/bin/php.ini
3. open the file using your favorite text editor 
4. search for smtp
the default is SMTP = localhost 
5. what you need to find out from your service provider is the name of your smtp.
now replace the localhost value with the name of your service provider 
6. now reset wamp 



No comments:

Post a Comment

Popular Posts