Jump to content
Killersites Forums

PHP Forms Question...‏

Guest CapitanJusticia

Recommended Posts

Guest CapitanJusticia

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

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...