Make contact form and send email in PHP

posted on July 3, 2006, 12:04 am
Comments
Ben posted on February 11, 2010, 1:10 am
I need assistance setting this up for automation when people do not finish the form. I would like to send an email to them to invite them to utilize my website so that I do not have to send a manual email out to them. I am using .php extensions on my site

Deepak posted on January 25, 2010, 10:42 am
Well..in easy and efficient way...gud luck

Dany posted on January 4, 2010, 3:38 pm
Thank u for help.I'm gonna try it.I'm using Edit plus3 and Apache,mysql database.Will mail function work properly with my text editor?Is there any special configuration in Apache?Thanks.

David Lafko posted on December 31, 2009, 10:31 pm
Scratch my last post.. My new post is
I got everthing to work and was able to change colors.

When you open the page you see links then a bar and then the form.. My question is how do i get rid of the 1st bar untill the e-mail is sent

David Lafko posted on December 31, 2009, 3:31 am
I am playing with the example above. IT works ok but does not return to the entry page..

I change the form action and can get it to return to other pages but not the one the people entered on..

The link is http://www.orwigsburg.net/history.php

How can i get it to move to a page to say thank you for your e-mail with this same look with the links that will be there they can return to other things in the site...

Ganesh posted on December 30, 2009, 9:06 am
\'\') { $ToEmail = \'youremail@site.com\'; $EmailSubject = \'Site contact form \'; $mailheader = \"From: \".$_POST[\"email\"].\"rn\"; $mailheader .= \"Reply-To: \".$_POST[\"email\"].\"rn\"; $mailheader .= \"Content-type: text/html; charset=iso-8859-1rn\"; $MESSAGE_BODY = \"Name: \".$_POST[\"name\"].\"
\"; $MESSAGE_BODY .= \"Email: \".$_POST[\"email\"].\"
\"; $MESSAGE_BODY .= \"Comment: \".nl2br($_POST[\"comment\"]).\"
\"; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die (\"Failure\"); ?> Your message was sent

how can I fix it? someone please reply...
Can I send the Email of the Form to a Yahoo or Gmail as receiver\'s address?

Ganesh posted on December 30, 2009, 9:06 am
'') { $ToEmail = 'youremail@site.com'; $EmailSubject = 'Site contact form '; $mailheader = "From: ".$_POST["email"]."rn"; $mailheader .= "Reply-To: ".$_POST["email"]."rn"; $mailheader .= "Content-type: text/html; charset=iso-8859-1rn"; $MESSAGE_BODY = "Name: ".$_POST["name"]."
"; $MESSAGE_BODY .= "Email: ".$_POST["email"]."
"; $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])."
"; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); ?> Your message was sent

how can I fix it? someone please reply...
Can I send the Email of the Form to a Yahoo or Gmail as receiver's address?

Vikas posted on December 8, 2009, 1:50 pm
You must have not saved it in .php extension

mohd posted on November 24, 2009, 11:57 am
this code is working fine.

Shane Keys posted on November 23, 2009, 10:41 am
Awesome, my first email form, I managed to encrypt it into my existing contact us page also, thanks a million

Pages:   1   2   3   4   5   6   7   8   9   10   
   
If you have any additions, suggestions or modifications for this example please contact us or use the form below.
   
Your name:
Your email: (email address will not be posted on the web site)
Comment:
Verification