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
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.

February 18th, 2010 at 9:38 am
For validation just use dreamweavers behaviours function
February 18th, 2010 at 9:38 am
Great Vid,, Just What i as looking for ..
February 18th, 2010 at 9:38 am
You’re a life saver! Thanks for the vid
February 18th, 2010 at 9:38 am
ya i think u do
February 18th, 2010 at 9:38 am
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
February 18th, 2010 at 9:38 am
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
February 18th, 2010 at 9:38 am
@kalia13 I am having the same problem did you find a solution?
February 18th, 2010 at 9:38 am
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″.
February 18th, 2010 at 9:38 am
is it possible to get the “contactformprocess.php” file? thanks
February 18th, 2010 at 9:38 am
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?
February 18th, 2010 at 9:38 am
NE one know how I can display the message sent OK. on the same page?
February 18th, 2010 at 9:38 am
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.
February 18th, 2010 at 9:38 am
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
February 18th, 2010 at 9:38 am
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
February 18th, 2010 at 9:38 am
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
February 18th, 2010 at 9:38 am
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 ! ! ! ! ! ! ! ! ! ! !
February 18th, 2010 at 9:38 am
@xinsanendabrainx no problem… also make sure to change the headers line to the following:
$headers = “From: $emailField\r\n”;
February 18th, 2010 at 9:38 am
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
February 18th, 2010 at 9:38 am
tutvid…Keep the good work coming! I have used your videos a bunch of times! Thanks!!!!
February 18th, 2010 at 9:38 am
@phaedon thanks alot for catching that mistake!!
February 18th, 2010 at 9:38 am
PHAEDON!!!!! You just saved me from going crazy! I must have watched this vid. 50 times trying to figure out what was wrong…THanks!!!!
February 18th, 2010 at 9:38 am
no problem. otherwise, this is a great tutorial. thanks!
February 18th, 2010 at 9:38 am
Phaedon…thank you for the response! I read through the strand and figured it out…everything is in good working order! Thanks a bunch!!!
February 18th, 2010 at 9:38 am
The video tutorial is wrong. The Email: $email line (and subsequent lines) should read Email: $emailField
February 18th, 2010 at 9:38 am
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!