Make A Website Review

Make A Website Online With Google

ProStores 1 Month Free Trial

Send Emails with a Web Form: PHP Scripting

February 18th, 2010 by make a website

Check this video out at Hi-Res here: www.tutvid.com Files are Located here: www.tutvid.com In the following tutorial we will start with a few html files and we will build an Email Handling PHP script that sends info from your web form to your email! It is pretty easy PHP so enjoy learning and Have fun! I am using Dreamweaver CS3, but you can use pretty much any version of Dreamweaver, just follow closely and try not to make mistakes. Please enjoy and don’t forget to check out the site www.tutvid.com

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace

This entry was posted on Thursday, February 18th, 2010 at 9:38 am and is filed under Make A Web Site. You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.

25 responses about “Send Emails with a Web Form: PHP Scripting”

  1. Mgiu5 said:

    For validation just use dreamweavers behaviours function

  2. virallistbuilding said:

    Great Vid,, Just What i as looking for ..

  3. GaGaGooGoostuff said:

    You’re a life saver! Thanks for the vid

  4. Karaoke4159 said:

    ya i think u do

  5. yindandq said:

    Do i need too have a webhost to get this work? Because when i use it in preview i dont get the mail and i see some things i have wrote? in the script plz help :)
    i had same

  6. Zerammify said:

    Do i need too have a webhost to get this work? Because when i use it in preview i dont get the mail and i see some things i have wrote in the script plz help :)

  7. lkelley50 said:

    @kalia13 I am having the same problem did you find a solution?

  8. newcom2010 said:

    Hello Guys! Can anybody help me? I receive the following message when I hit the send button “Fatal error: Function name must be a string in /home/newcombg/public_html/contactssendform.php on line 8″.

  9. smurfsmurf12 said:

    is it possible to get the “contactformprocess.php” file? thanks

  10. joneshwood609 said:

    Somebody please help! Everything works great but when i send the information from the form everything looks good but all the information that was entered didnt show up. What am i doing wrong?

  11. 3GKnight said:

    NE one know how I can display the message sent OK. on the same page?

  12. Monkeysniffer08 said:

    Does this php form work with the preview in a browser? (not hosted online)

    I have been trying to view it through safari, but with no luck. I guess you can’t because Nate didn’t even test it before uploading it.

  13. xyzyx2009 said:

    SOMEONE PLEASE HELP!

    I have checked for typos many times already. Whenever I enter the html code of my webpage, the last part of it turns all red. (IncludingEOD;echo “$theResults”;) When I click on the submit button online after uploading to my server, I dont receive an email and it sends me to my address with the contactformprocess.php file at the end.

    Please help Im very frustrated and tired. Its 321AM

  14. LVresidence said:

    Have you ever had this problem? At the top of the results page it is saying: Warning: mail() [function.mail]: SMTP server response: 554 The message was rejected because it contains prohibited virus or spam content in D:\Hosting\5523277\html\contactformprocess.php on line 55

  15. zakir2004 said:

    I have followed your tutorial and when I am trying to send the message, it gives the following error:
    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:\xampp\htdocs\project\contac tformprocess.php on line 31
    Thank you for your interest! Your email will be answered very soon!

    Is that I have been using localhost and have no proper server or is? it something else

  16. kalia13 said:

    hi! i followed this tuturial carefully and the form only half works. i do get an email but the name, info, comment (my three fields) are blank in the email. basically the email coming through is like:
    —————————————————————-
    Name:
    Email:
    Comment:

    Do you have any ideas as to why name, email, comment comes through blank?

    Brilliantly useful tutorial people ! ! ! ! ! ! ! ! ! ! !

  17. phaedon said:

    @xinsanendabrainx no problem… also make sure to change the headers line to the following:

    $headers = “From: $emailField\r\n”;

  18. rswinnovations said:

    I’ve tried this twice now and it still doesn’t work. I’ve checked everything character for character but it still doesn’t work. This tutorial doesn’t work

  19. xinsanendabrainx said:

    tutvid…Keep the good work coming! I have used your videos a bunch of times! Thanks!!!!

  20. xinsanendabrainx said:

    @phaedon thanks alot for catching that mistake!!

  21. xinsanendabrainx said:

    PHAEDON!!!!! You just saved me from going crazy! I must have watched this vid. 50 times trying to figure out what was wrong…THanks!!!!

  22. phaedon said:

    no problem. otherwise, this is a great tutorial. thanks!

  23. ajrand1 said:

    Phaedon…thank you for the response! I read through the strand and figured it out…everything is in good working order! Thanks a bunch!!!

  24. phaedon said:

    The video tutorial is wrong. The Email: $email line (and subsequent lines) should read Email: $emailField

  25. ajrand1 said:

    Hi! This has been a great tutorial! Everything has worked so for except when the form is submitted the information doesn’t actually process and show in the email. Any ideas??? Thanks so much for your willingness to help!