Guest CapitanJusticia Posted June 20, 2011 Report 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
falkencreative Posted June 20, 2011 Report 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now