Guest CapitanJusticia Posted June 20, 2011 Report Share Posted June 20, 2011 Hi everyone, I was watching the third 'Processing Forms with PHP' video, where we see an example of how to send the form data to our email, but I keep getting the error below when I try to send the form data to my email. Do you know how this can be fixed? Thanks. 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 C:\wamp\www\PHPFiles\form_response.php on line 13 Quote Link to comment Share on other sites More sharing options...
falkencreative Posted June 20, 2011 Report Share Posted June 20, 2011 I believe this requires editing the PHP.ini file to add your own smtp details. See http://www.programmingfacts.com/send-email-localhostxampp-wamp/ for one tutorial (and I am sure that searching "mail function php wamp" will bring up some others). As a general rule though, I tend to test any functionality that uses mail() on an actual web web server, not on my local computer. 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.
Note: Your post will require moderator approval before it will be visible.