PHP Email Contact Form Tutorial

Email contact forms are a great way to add some visitor interaction to your website.

The best HTML can do for you in this area is a mailto email link. This isn’t very user friendly, especially if your visitor uses webmail, and not an email client app. It also makes you an easy target for spammers and their “bots”.

With a some HTML, a little PHP, and some CSS to make it appealing, you can craft an email form that gets site more feedback, less spam, and even make it look more professional.

Let’s get started

First, paste this HTML in the spot you want the form:

<form class="email" action="mailer.php" method="post">
<input type="text" name="name" />
<input type="text" name="email" />
<input type="text" name="subject" />
<textarea name="message"></textarea></p>
<input class="send" type="submit" value="Send">

Now let’s add the PHP and make it do something. As you can see in the first line of HTML, it’s pointing a document called mailer.php. Let’s make that file. If you want to name it something else, or put it in a different directory/folder, just alter the address accordingly.

Create a new text file in your editor. Paste in this:

/* Set e-mail recipient */
$myemail = "YOUR EMAIL ADDRESS";

/* Check all form inputs using check_input function */
$name = check_input($_POST['name'], "Enter your name");
$subject = check_input($_POST['subject'], "Enter a subject");
$email = check_input($_POST['email']);
$message = check_input($_POST['message'], "Write your message");

/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
show_error("E-mail address not valid");
/* Let's prepare the message for the e-mail */
$message = "

Name: $name
E-mail: $email
Subject: $subject



/* Send the message using mail() function */
mail($myemail, $subject, $message);

/* Redirect visitor to the thank you page */
header('Location: thanks.html');

/* Functions we used */
function check_input($data, $problem='')
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
return $data;

function show_error($myError)

<p>Please correct the following error:</p>
<strong><?php echo $myError; ?></strong>
<p>Hit the back button and try again</p>


Save that as mailer.php.

If you’ve never messed with PHP, the looks can be pretty intimidating, but I’ll go over the basics of what all that means.

First you’ll see I’ve written your email address in all caps. Delete that and enter the email you’d like it to deliver to. It then checks to see if what the user has put in the form fits the criteria. If not, it asks them to properly add their name or email etc. Next, it prepares the inputted data to be sent to the email address you just provided at the top. Then, if the email is sent successfully, it redirects the visitor to another page on your website. You can just create a page saying the email was sent successfully and you’ll get back as soon as possible or something and put it’s URL there. The last part is what generates the error message if the data wasn’t entered correctly.

Your form is complete. It processes data input by a visitor and sends it to your inbox.

But it is a little ugly.

Doctor it up by adding some CSS

You’ll probably want to edit this to match your design, but here’s a little style to get you started: p {
font-size: 15px;
padding: 0 0 10px 0;
margin: 0;
} input, textarea {
font-family: Arial;
font-size: 15px;
margin: 0 0 20px 0;
} input {
background: #f5f5f5;
padding: 5px;
border: 1px solid #bbb;
border-radius: 5px;
} textarea {
background: #f5f5f5;
padding: 5px;
border: 1px solid #bbb;
border-radius: 5px;
width: 400px;
height: 250px;
} input.send {
color: #fff;
background: #222;
border: #000;
padding: 10px 25px 10px 25px;
cursor: pointer;

In fact, for the Send button, you could use one of the background graphics I made specially for this type of thing.

You now have all the knowledge necessary to get started building your own PHP driven email contact form. If you’ve done so, and are still bringing in spam, but looking for a fix, you’re in luck. The very next post on Code Chirps will show you how to add a captcha!


PHP is a server-side language, so this form will only work on a web server unless you have MAMP or similar software running on your computer.

*Update: Professional installation

Due to a large amount of people commenting having problems getting this form running on their websites, I am now offering professional installation for just $49. This includes up to 5 custom fields and a custom graphic matching your current design for the “Send” button. For more information, contact me here.

If you enjoyed this article, why not share it with your friends? I’d appreciate it.

Get this delivered to your inbox!

It's quick, free, and painless.


  1. How to add a captcha! Oh man. I’m going to read that very carefully. Tried to do that a couple months ago and got SO confused. Google’s tutorial wasn’t very helpful.

  2. Great post.. Very helpful for beginners as well as others..Thanks for sharing this..Keep posting such useful articles..Cheers!!

  3. Ok maybe someone or maybe someone can not help me. But I can not get this darn php to work for nothing. I have deleted it from my server and copied and changed the email again. And then uploaded it to my server. Maybe someone can figure this out cause I can not figure it out. I have tried for 3 hours and now I am saying enough is enough till I get some help with this Thanks.

  4. You are a star mate! Thanks!

  5. vickievik says:

    Thanks for sharing I have no idea of PHP, needed a PHP form script , but u provided the css decorating code too. U made my work easy…

    million thanks man

  6. You are the best. You deserve a hug and more.

    God bless you.

  7. This is a great article and very helpful. Can you show us how to add a captcha to this code?


  8. You’re great!

  9. This is very helpful to me. Thanks a million sooo much! ^___^

  10. Very handy indeed !
    Just wondering, I want to add an adres that people OPTIONAL can fill in.
    I can add the adres thing, but now it will always be checked and gives an error when not filled in..

    Any help with that?

    • Removing the lines of PHP that verify the address it should do the trick.


      $email = check_input($_POST['email']);


      /* If e-mail is not valid show error message */
      if (!preg_match(“/([\w\-]+\@[\w\-]+\.[\w\-]+)/”, $email))
      show_error(“E-mail address not valid”);

      • First of all thanks for the quick reply !
        But I think I didn’t make myself clear..

        I want to add an optional home-adres (and telephone number). The email, name and message are obligated, so that works fine as it is.

        This is what I tried : (translated in Dutch but it will be clear)
        In the PHP :
        $message = ”

        Naam : $naam
        E-mail : $email
        Adres : $adres
        Telefoonnummer : $telefoon

        Boodschap : $boodschap


        In the HTML :

        They don’t come in the mail though, I’m guessing that’s because they are not in the checklist on the PHP (on top), but when they ARE in the checklist they are no longer an option, but are obligated and that’s just what I don’t want.

        I hope this makes any sense, not a native english speaker.

  11. Just wanted to say YES IT WORKED!! Thank you :)

  12. I have just joined 1and1, they are terrible. Dont have time to help their customers. I am new to php and I have got my form ready but is not working. 1n1 FAQ suggest i must change a few codes on which ive done.

    this is the big problem:

    I am using easyphp on windows, please help. A form like yours would be lovely lol

  13. Hi Daniel,

    great post but im having some issues with the final step of linking the html to the php script. I am using mamp and have set up a folder in the mamp directory called ht docs the code is as follows:

    form class=”email” action=”Applications/MAMP/htdocs/mailer.php” method=”post”>

    When i press send this is what i get:

    The requested URL /Applications/MAMP/htdocs/mailer.php was not found on this server.

    any idea what im doing wrong?


    • This just means the path in the link to the PHP file in the HTML file is incorrect. If both files are in the same directory, all you need is ‘mailer.php’. Otherwise write the path starting from the directory in which the file you’re linking from exists. If it is outside that directory, you put ../ to go up a directory.

      • ok thank you it all works fine now apart from the messages do not send to the $myemail variable? As in i dont recieve any email once someone has filled out the form?

  14. Great article!
    Short, clear and super useful!

    Thanks dude

  15. Hi I did what you said above. But I get the error 500 code
    when I send:

    500 error

    What does it mean?

    Document not found — the requested file was not found on the server. Possibly because it was deleted, or never existed before. Often caused by misspellings of URLs.

    I am very not into programming scripts, just wonder what went wrong

    • 500 error simple means the file wasn’t found, just like it says on the 500 error page. Check your links and make sure you have the correct names and paths in your linked documents.

      • I got the same problem. I double and triple checked the path. here is a glimpse of my directory tree:

        ├── contact-us.html
        ├── css
        │   └── …
        ├── images
        │   └── …
        ├── pageElements
        │   └── …
        ├── scripts
        │   └── mailer.php

        and here is the line in HTML:

        I don’t understand what the problem is. BTW, I do like how easy to follow your tutorial is and the way the form looks with the css, very clean. I made a few mods though ;)

        • I got this issue fixed by contacting support (I use cpanel on my hostgator account). It was a permissions issue. I am still waiting for a response as to what permissions are needed, but I thought I would post here in case others have similar problems.

  16. Thank you very much for this tutorial.
    I could make my contact form working with your help.

    I had a problem since 2 days and I couldn’t solve it before.

    Thanks again.


  17. This is a great tutorial thanks alot! Please, can you tell me where to put the CSS code? In the mail.php or the HTML code?


  18. Hi there,

    I don’t know much about php, just some html, css and js…
    I tried this easy solution you kindly share with us but anytime I send the data (press the send button) I get redirect on the mailer.php page, which it’s what I guess it’s supposed to happend, but I display the html part:

    Please correct the following error:

    Hit the back button and try again

    I’m sure I’m making some very easy and stupid mistake, little help..? :)

  19. Thanks Daniel for this awesome tutorial! I love it!

    1 question however, if you wanted to convert this to show email validation error messages on the same page (like above the text fields) instead of on another page, how would you do that?

    • Thanks man!

      That is certainly possible and something you see a lot, but that would require some much more complicated PHP than is used here and you’d have to start from the ground up rather than working off this form.

  20. i got this error msg
    Notice: Undefined index: name in C:\wamp\www\mailer.php on line 14
    please help me to resolve it

  21. not working!

    after activating send button, nothing happens
    it says it cant find the file but there it is

    just copy the address line or push f5!!!
    mailer.php in same file with index.php btw

    • There might be a few problems that you might have.

      Do you have as it like on line 1 of the html?

      And on the php file make sure that is saved as mailer.php.
      Also check here to make sure that this line is also correct on the .php file.

      $email = check_input($_POST['email']);
      Make sure that the input($POST['email']; and the method=”post” in the html file. That has to be exactly like that for the php and the html file to work together.
      That is all I can come up with unless Daniel might have another suggestion.

    • It sounds as if your link is incorrect. Ensure that you include action=”mailer.php” at the beginning of your HTML form tag. It should fine it as long as you have the PHP file named correctly and in the same folder as your HTML file.

      • Hi Daniel,

        Thanks for the simple form and especially the even simpler capcha in the next article.

        For some, instead of just putting the mailer.php, they should be told to put the entire URL (or whereever it actually is)

        That is especially true if WordPress or Modx is being used.

  22. Thanks for the tutorial!

    What would the code (HTML and php) look like if I wanted to add a radio button to the form?

  23. Brilliant tutorial. Here I thought it’d be a nightmare trying to create something like this.

    I do have one, major issue though.
    I have it up and running. If a field is not valid it displays the proper error message. And when it’s perfect, it redirects them to the correct page. But it never actually sends the email. I tried both my yahoo and gmail on the off chance it’d be sent to spam. But I haven’t received any of the dummy emails I sent to myself. You wouldn’t have an idea why, would you?

  24. it doesnt seem to work. ive done everything, the page refreshes when you click submit but no emails get through.

    • The page shouldn’t be refreshing, it should be directing you to mailer.php. Have you checked your file paths and names/links?

      • Actually shouldn’t it be redirecting to the thanks.html page if everything is working?

        Make sure you have that page created. If not, it will send the emails and take the user nowhere or say the page is not found.

  25. I have the same problem! It doesn’t seem to work. no emails get through.

  26. Do you also need a mail server installed on your server to use an email contact form on your website?

  27. Thanks for this, dude. This is fantastic. By far the most straightforward tutorial on this that I’ve come across.

  28. I get this error message upon trying to send a test message.
    Warning: Cannot modify header information – headers already sent by (output started at /home/content/33/10547133/html/contact.php:6) in /home/content/33/10547133/html/contact.php on line 41
    I have only modified a few minor things on both html and php (ie names of forms and such) I did use DW spryboxes if that matters.

  29. Respected admin! i m facing difficulty in mail connection.please check the code and fix the error. i will be very thankful to you for this kindness.
    $txtname = $_POST['txtname'];
    $txtPN = $_POST['txtPN'];
    $txtEmail = $_POST['txtEmail'];
    $txtAdd = $_POST['txtAdd'];
    $txtMarbleName = $_POST['txtMarbleName'];
    $txtSize = $_POST['txtSize'];
    $txtThickness = $_POST['txtThickness'];
    $txtAmount = $_POST['txtAmount'];
    $textAreaMessage = $_POST['textAreaMessage'];
    $headers = “From:” . “\r\n” .

    Name: “.$txtname.”
    Phone No: “.$txtPN.”
    Email: “.$txtEmail.”
    Address: “.$txtAdd.”
    Marble Name: “.$txtMarbleName.”
    Marble Size: “.$txtSize.”
    Thickness “.$txtThickness.”
    Amount: “.$txtAmount.”
    Message: “.$textAreaMessage;
    mail(‘’,'Online Order Record’,$message,$headers);

    echo “alert(‘Information Send’)

  30. I am a php beginner but everything seems to be correct but when I press submit it loads to the php file?

    • If PHP isn’t running on your server/computer it will simply load the file. You’ll need to put it on a server or install MAMP/WAMP.

  31. My problem after trying the code is i get the error 405…
    Can I know what seems to be the problem?

  32. Portik Istvan says:


    I have a problem with your script.
    In my inbox, the email address is not display, just “Nobody”
    How to improve that?


  33. Doesn’t work for me

    I’ve only changed $myemail field and uploaded to my server,
    script didn’t work

  34. Is there a way to change who the email is from? It appears it is pulling the server name. How would I change it to make it come from the sender’s email address?

    Thank you for the form!

  35. Hi there,
    I uploaded the code and it progresses to the page i want like it has sent however no emails have been received. How can i fix this?

    • Have you verified your email address in the PHP and also checked in your email’s spam filter?

      • I am also building a contact form that has a dropdown menu and the user can choose a topic from the dropdown to contact about. how can i adapt the code to allow the information from the drop down to be sent in the email as well as the other details?

        • This is my form Service Request


          Email Address


          Intruder Alarms
          CCTV Systems
          Access Control
          Fire Alarm Systems
          Door Entry
          Integrated Systems



  36. Sande, John J. says:

    Hi Daniel,

    THANK YOU FOR THIS TUTORIAL. It has come really handy and worked perfectly on my site. However, one small issue. I don’t like the way {myError} is being displayed on a separate page, and have to ‘hit back’.

    Could you shed some light on:
    1. How to make the error message pop up on the same Contact Page/Email Form or displayed above the error point (e.g. Enter valid email) instead of loading a whole new page.
    2. Display all the errors (if available) at once instead of the current one-by-one.

    Much appreciate.
    John Sande (Nairobi, Kenya)

  37. Hi Daniel,
    Thanks a lot for this pretty tutorial. i copied your code and i write down my email address, but when i submit the form i got the thanks page that the mail is sent.
    But when ich ckeck my email i find nothing even in spam.

    I will be thankful if you make some suggestions.

    Best wishes.


  38. I changed the sum – just to be different…

    In the HTML:

    What is:3 + 4 =
    (and yes this is in a table format)

    In the php:
    if (!preg_match(“|7|”, $captcha))
    show_error(“You failed the security sum.”);

    and now it no-longer works… any ideas as to why???

  39. Anna Lam says:

    i uploaded my contact form to my server, and the form does redirect me to the “thanks” page but I’m not getting any emails at all.

  40. Hi Daniel can i post you my code because i still cant solve the problem?


  41. i think it is processing the PHP because it takes me to the thank you page. I dont at the moment im trying to get a contact form working to i can put my website online. Im really not sure whats wrong with it.

  42. Awesome tutorial, thanks! I have this loaded on my server at The email sends, but instead of redirecting to the thank you page, I am getting the following error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/91/9712091/html/myvaccine/mailer.php:12) in /home/content/91/9712091/html/myvaccine/mailer.php on line 44

    All I updated was the email address. Any ideas?

  43. I keep getting a function undefined error regarding my check input function. Any help?

  44. I am a private loan lender that give out loans online, all at an affordable interest rate of 3% and a long-term repayment of the period, which is negotiable, so if you are in need of a loan, all you need to do , contact me via email for more information on how to get the loan.

  45. Thank you it worked for me like a charm. I could now use my own custom html form for my website. :) Million thanks.

  46. Thanks a million Daniel. I usually use Contact Form 7 in WordPress installations however this site is only a brochure site and I required your form as a contact form.

    Question for you if you can help: Is there a way of changing the error message to redirect to another page (similiar the page for Thanks.html).

    Thanks again mate – awesome tutorial!

  47. Hi, I just wanted to say thanks for the great tutorial.

    Minor issue I had:
    At first I would click “send” on my html form and it would just redirect me to my thanks.html page without sending an email. Then I looked at my spam folder on gmail and found all the test messages I had sent. So if it looks like everything is working but you’re not getting emails, be sure to check your spam folder!

    Anyway, thanks again!

  48. Hi Daniel,

    I just wanted to say thank you for the code! I have no knowledge on PHP but needed to install a script on my website contact form. I tried several templates before yours and had problems with each one. Your code worked perfectly with no hassle!


  49. Great stuff. You have helped to explain this in a way that I haven’t found on too many other websites. Believe it or not, your thorough comments in the code have been the biggest help! Many thanks!

  50. Impotence is now referred to as erectile dysfunction, the incapacity to maintain a firm erection long enough while having sex.
    Impotence is mainly used now to mean infertility.
    When discussing their sexual health with colleagues or friends
    , Men generally find some discomfort. They are even more reluctant to discuss it with their physician.
    Being open to discuss any sexual problem can bring about its solution.

  51. can any one help in this actually when i add php mailer in Rsvp form webite is not refresh.

  52. Hi, very good website you’ve going here.

  53. Hi, I work with LEGEND WEB HOSTING and I have been given the task of reaching out to you regarding your website. We would like to offer you 6 months of free web hosting. This coupon code 7KCXM2ZU03 will give you free web hosting for six months on any of our web hosting packages at . If you need help migrating your site we will also do this for you for free. The coupon is good for anyone that wants to use it for the next 30 days. You will notice our hosting rates are the most competitive in our industry and hope to save you money by providing you the most affordable web hosting along with 6 months for free. If you have any questions feel free to email me directly. Thanks for your time and I hope this will help you.

  54. Hi Daniel,
    Is there a common reason why when testing a PHP Email Contact Form it will work, but when other people try to use it the send button doesn’t work?

    Any advice would be most welcome,,,



    • Im sorry, I’m afraid I don’t know what the problem is Vince. Is this the exact same form installation that seems to work sporadically?

  55. Thanks a lot for these code snippets, Daniel. I’ve been experimenting with removing the subject field, but when I remove each instance of the variable $subject (including not having a subject field present in my form), it seems to break the entire thing. My workaround is to simply include a subject field in my form (even though it doesn’t really need one) and just include the text in a value attribute so the user doesn’t need to type anything in if they don’t want to.

    Does the code break when removing the subject instances in the php file because e-mails require subject fields? If so, how would I go about setting the subject variable to a static string of text rather than accepting user input? I’d like to set it to something static so I can identify it in my inbox, but not require the user to input anything. There’s only one reason why anyone would use my form to contact me, so it isn’t necessary.

    Thanks in advance for any help you can provide. I’m new to PHP and am excited to learn the inner-workings of this whole web form thing.

  56. Really thank you! Very very thank you… if wasn’t for this i wouldn’t do it… (I edit it a bit more) Still urs was helpful and i can continue working on the email of other systems.

    This tutorial should be infinity stars, cause i seen many and yet only this helped me so much :)

    Thanks again and have a good day! if ya wanna add me contact me on site, we can talk ^^ i am working on many more php systems too.

  57. Dan Willcox says:

    Oh my god, this the best tutorial. Just what I needed.

    Keep up the good work,

    many thanks

  58. can anyone help me for making uploading, that the file get sent by email? all i need is the code for uploading onto the code of php mail, hope ya can help… send me and email on

  59. steve wil says:

    working on site but after submitting this message follows

    Warning: Cannot modify header information – headers already sent by (output started at /home/ephetast/public_html/studio/mailer.php:2) in /home/ephetast/public_html/studio/mailer.php on line 33

  60. steve wil says:

    please admin great job youve done. when click on submit i get a warning message

    Warning: Cannot modify header information – headers already sent by (output started at /home/ephetast/public_html/studio/mailer.php:2) in /home/ephetast/public_html/studio/mailer.php on line 33

    it does not redirect to the new page i created(thank.html)
    what is wrong with the headers

  61. steve wil says:

    sending the email worked perfectly but it was not redirecting properly could it be the link? I guess it is. how do I get it to redirect then

    sorry php is not my BEST FRIEND

    thanks mate

  62. steve wil says:

    Working well $$$$
    Was a white space

  63. Thanks… Thanks…

    Keep up the good work,
    many thanks :)

  64. shyam sundar says:

    After submitting form the page redirects and shows sent successfully.
    But i dont recieve any mail.what would the problem and iam using wamp server.
    Help me plz!!

  65. the emails are not pushing through the page says it was sent but i don’t get the emails in my inbox? any advice on why that is happening ?

  66. the emails are not pushing through the page says it was sent but i don’t get the emails in my inbox? I could get the message only in the spam. and one more thing. Why it appears as noreply.

    Thanks. The contact form reallyy helped

  67. i get this error when i click submit please help

    The requested URL /thanks.html was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    and i do receive email… any suggestions?

    • When the message is sucesfully sent, the script will redirect to a specific page, in this case, the script comes with a default thanks.html.

      Look in the script for this part:

      /* Redirect visitor to the thank you page */
      header(‘Location: thanks.html’);

      If you have already a thanks.html section or whatever you named it, you just need to change its URL in the script.

  68. i am getting email from this address

    how to change it ?
    any suggestions?

  69. can someone please help me out how to get the thank you message in the same page in my contact form?

  70. Hi,

    I used your HTML form and tried to validate it, here are the errors I got:

    Error Line 95, Column 25: required attribute “rows” not specified

    The attribute given above is required for an element that you’ve used, but you have omitted it. For instance, in most HTML and XHTML document types the “type” attribute is required on the “script” element and the “alt” attribute is required for the “img” element.

    Typical values for type are type=”text/css” for and type=”text/javascript” for .
    Error Line 95, Column 25: required attribute “cols” not specified

    The attribute given above is required for an element that you’ve used, but you have omitted it. For instance, in most HTML and XHTML document types the “type” attribute is required on the “script” element and the “alt” attribute is required for the “img” element.

    Typical values for type are type=”text/css” for and type=”text/javascript” for .

  71. sdfsdfsdfsdfsdfsdfsdf

  72. Hi, thank you for sharing this tutorial…helped me a lot.
    i have a question regarding the defaul address that shows on the email: right now appear How can I change so my client web address apears instead?
    thank you some much in advance,

  73. After submitting form the page redirects and shows sent successfully.
    But i dont recieve any mail.

  74. does it not require any smtp credentials to authenticate email detail for security..

  75. Just wanted to say thank you for all of your hard work.
    I looked everywhere to find a simple script to use so
    that I could learn the basic. This script is fantastic
    for people who are not to familar with PHP.

    Thanks so much!!!


  76. Okay so I go to type in say the “Name, Email, and message” I then hit the Send/Submit button and it takes me to a page saying

    Please correct the following error:

    Hit the back button and try again.

    So I do that and it is the blank form just sitting there as if I did nothing. Please help!!!!

  77. Registration

    background-image: url(“bg3.jpg”);
    background-position: center top;
    background-repeat: repeat;
    color: #663300;
    font-size: 12px;
    height: 36px;
    line-height: 36px;


    .enquiry_form tr td
    font-family: “Helvetica Neue”, Arial, sans-serif;
    box-shadow:0pt 2px 5px rgba(105, 108, 109, 0.7),0px 0px 8px 5px rgba(208, 223, 226, 0.4) inset;
    background: none repeat scroll 0 0 #EBE8E2;
    border: 1px solid #765455;
    font-size: 14px;
    height: auto;
    padding: 6px;
    width: 100%;
    border-radius: 4px 4px 4px 4px;
    margin: 10px 0;
    cursor: pointer;
    color: #7E7E7E;
    font-size: 15px;
    padding: 5px;
    border:3px outset buttonface;


    Contact Form :

    Name :

    Email :

    Contact Number:

    Your Msg :


    how to convert this html code to php ..please send me full details

  78. Hello, Neat post. There’s an issue together with your web site in internet explorer, may test this?
    IE still is the market leader and a good section of other folks will leave out your fantastic writing because of this problem.

  79. I would just like to say thank you! as a beginner this has helped me LOADS! Absolutely perfect, easy to follow and clear instructions.

    Thanks you <3

  80. It connects with thanks.html but fails to send message to the myemail mentioned.!

  81. Sofiyan Khan says:

    Hello Sir

    The PHP code is fine but I am not receiving any email from my email address, I installed XAMPP server can it is work or else I have to install WAMP server.

  82. Hi Daniel,
    I just wanted to say thank you for your clear and straight-forward presentation of the HTML, CSS and PHP required to construct a fully-functioning simple form.

    I’ve looked far and wide on the internet for such a presentation, but yours is an oasis in a dessert of over complicated explanations and poor communication.

    Again, many thanks.

    Kind regards,

  83. fdg

  84. Hi to every body, it’s my first pay a visit of this web
    site; this web site includes remarkable and in fact
    good stuff designed for visitors.

  85. hi trying to get this to work set up test page

    captcha question appears but doesn’t work….forms get processed whether answer is right or wrong….

  86. The other day, while I was at work, my cousin stole my iphone and tested to see
    if it can survive a thirty foot drop, just so she can be
    a youtube sensation. My iPad is now broken and she has 83 views.

    I know this is totally off topic but I had to share it with someone!

  87. Awesome things here. I’m very satisfied to see your post.

    Thanks a lot and I’m looking ahead to touch you.
    Will you please drop me a mail?

  88. Nice post. I used to be checking continuously this blog and I am inspired!
    Extremely helpful information particularly the ultimate part :) I care for such information a lot.
    I was looking for this particular info for a long time.

    Thanks and best of luck.

  89. Hey there! I just would like to offer you a huge thumbs up for your excellent information you have
    right here on this post. I’ll be coming back to your website for more soon.

  90. I am truly thankful to the holder of this site who has shared this fantastic piece
    of writing at at this time.

  91. Fantastic items from you, man. I’ve understand your stuff prior to and you are just extremely great.
    I really like what you have acquired right here,
    certainly like what you’re saying and the way in which you say it.
    You’re making it entertaining and you continue to care for to stay it smart.

    I can not wait to learn far more from you. That is actually a great web site.

  92. Great !
    Awsome !
    Extremely comfortable and easy to install.

    Thanks Daniel Shamburger
    Best Wishes

  93. Thank you!

  94. refer

    I Followed your steps but I am not receiving mail to ,I had replaced it but still nothing… after sending its redirecting to new page as I had given it as home page

    please help

  95. It is truly a great and helpful piece of info. I’m happy that you just shared this
    helpful info with us. Please keep us up to date like this.
    Thanks for sharing.

  96. ” Maltby notes, “When it pulls up, I literally feel the joy draining
    out of my body. Concrete Welder and Flo – Mix are available for purchase through the Roklin web site at or call 1-888-Flex – Set.
    Ease of installation is a major reason that has made asphalt a preferred choice for constructing roads and highways.

  97. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each
    time a comment is added I get several emails with the same comment.
    Is there any way you can remove people from that service? Many thanks!

  98. Following we have the only 7 star hotel in this planet i.e.
    With a leased vehicle, you will be bound with the terms stated in the agreement.
    Men have been romancing vehicles considering that they have been invented.

  99. Magnificent goods from you, man. I have understand your stuff previous to
    and you are just extremely great. I actually like what you have acquired here,
    certainly like what you’re saying and the way in which you say it.
    You make it entertaining and you still take care of to keep it smart.
    I cant wait to read far more from you. This is actually a wonderful website.

  100. Great work! This is the type of information that should be shared around the internet.
    Disgrace on Google for no longer positioning this post
    higher! Come on over and seek advice from my website . Thanks =)

  101. Seriously wonderful articles are available on this site, thanks for your contribution.

  102. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get
    several e-mails with the same comment. Is there any way you can remove people from that service?
    Appreciate it!

  103. Hello, I log on to your new stuff regularly.
    Your writing style is awesome, keep doing what you’re doing!

  104. Hello! I’ve been reading your web site for a while now and
    finally got the bravery to go ahead and give you a shout out from New Caney Tx!
    Just wanted to tell you keep up the excellent work!

  105. I every time spent my half an hour to read this web site’s articles or reviews everyday along with a mug of coffee.

  106. Hi there, after reading this remarkable piece of writing i
    am as well delighted to share my experience here with

  107. Howdy! This is my 1st comment here so I just wanted to give a
    quick shout out and tell you I really enjoy reading through your blog posts.
    Can you recommend any other blogs/websites/forums that
    cover the same topics? Thanks a ton!

  108. It’s an awesome article in favor of all the online users; they will take benefit from it I am sure.

  109. Hi my friend! I wish to say that this article is awesome, nice written and
    come with approximately all important infos. I would like to peer extra
    posts like this .

  110. I really appreciate this post. Iཿve been looking
    everywhere for this! Thank goodness I found it on Bing.
    You’ve made my day! Thx again

  111. Speaking of magic, this is THE most magical tweak in Cydia.
    And it is easy for you to reset Windows 8 password from now on.

    There are also certain apps that can be downloaded from third party apps that may have been unavailable

  112. En Ainsi si vous voulez en être affamer contre être
    content approprié succès, il est certain un certain
    absolu effets acte de pensée en route vers abandon intimidateurs
    approprié départ generateur de code psn gratuit prendre fiabilité être
    aussi comment alter ego . ( 6 ) être existant adaptatifs – Employés Afficher que vous appréciez leur association contre démontrant combien vous accord concerne employé vie .
    Psn Code de la morale Auto peut être quittes avec tout de commuer tous mais raccordement .

  113. Try to start slowly and work your way up to at least 1
    hour of exercise daily. And as the pointer of the balance goes down, the erections will, literally, go up and remain aloft for much longer.
    Protein, lactose, calcium, zinc, animal protein and folate are some of the
    rich compounds present in dairy products.

  114. I all the time used to read article in news papers but now as I am a user of web therefore
    from now I am using net for content, thanks to web.

  115. Players take turns doing one of the following: bringing a piece
    on to the board, taking a piece off the board, reorienting a piece,
    moving a piece (one space horizontally or vertically, in the direction being
    faced), or pushing other pieces. Despite being free, you can still
    be assured that these games still boast of a decent graphics and an enticing and
    exciting game play. I will limit this blog to the 3 most important topics to master
    to become a winning player at PLO8.

  116. 3+, is optimized with iPhone 5 and is compatible with iPhone, iPad and iPod Touch.
    Numerous businesses are purchasing iPhone apps for use by their
    cleints, with very little thought on how this will effect sales or effect their profit.
    You can even create your own Watchlist so you can view what you want,
    when you want.

  117. The other fix is simply a chip you place under the sims card in your phone.
    Sims of all ages except the toddlers can participate in Classic Dance or Jump rope.

    Bottle cap crafts are also well sought after now a days.

  118. iPhone made the most out of this significant upturn in the prolific phase of
    Smart Phone and made its presence count and cashed the season with the insightful launch
    of its application portfolios segregated in varied dynamics of
    promising value leads. The app features more than 57 different tools, including the following: Calculating circuit values for resistor, capacitor,
    inductor, NE555, filter circuits and more Number base
    converter (hex, decimal, binary etc. Each iPhone app download represents multiple potential future sales.

  119. Asphalt shingles are an ideal choice for most homeowners because of the
    many benefits they offer. Concrete Welder and Flo – Mix are available for purchase through the Roklin web site at or call
    1-888-Flex – Set. * Carry a Communication Device with You – ATV operations should be sure to carry a cell phone
    or walkie talkie with them at all times so that they can call
    for help in the event of an emergency.

  120. Admiring the persistence you put into your blog and detailed information you
    present. It’s good to come across a blog every once in a
    while that isn’t the same outdated rehashed information.
    Great read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  121. This piece of writing is genuinely a good one it helps new
    net visitors, who are wishing in favor of blogging.

  122. Accept that others are generally doing what they do for good reason
    (at least within their own worldview). Family Fun partners with
    Disney and provides lots of Disney-themed crafts. In the Phoenix, we have new program with its benefits for all ages and it is
    Eye Exam Phoenix.

  123. Do people pick grapes from thorns, or figs from thistles.
    It is not generally much better all another weight training courses,
    but instead it has some advantages that the other courses donrrrt have.

    The 6th plane of existence includes Laws of Creation which balance and regulate the fabric of accountability and Creation pure

  124. Shingle durability is determined by warranted life.
    Ask friends, family, and professionals such as realtors for referrals 2.
    In the context that you are actually making use of the seal coating that is to be used
    in asphalt, it is important for you to actually
    prevent many major repairs from happening.

  125. All that being said, the aspect to all of this that I wish
    to share, and perhaps provide a dose of caution, is: Grades.
    ) In the eighties using crushed tiger nuts and various pellets soaked in tiger nut extract,
    powdered palatants and enhancers for example was a great edge for me.
    As I don’t buy Collector’s Edition games as, to me, they’re not worth the additional
    money, I had to wait an extra few weeks for BG to put Dark Parables:
    The Exiled Prince, the normal version, up on their site for

  126. You might find that you cannot purchase a unit which is in good
    condition. In the Grand Theft Car series (with the latest payment being The Ballad of Gay Tony), we do merely
    which. Wakeboarding has you holding you remote horizontally as you take to the water,
    sweeping from side to side and flicking the remote up
    as your board hits the wave.

  127. lifework liftable liftgate liftoffs ligament ligating ligation ligative.
    quills   quilts   quince   quinic   quinin   quinoa   quinol   quinsy.
    toolings toolless toolroom toolshed toothier toothily toothing tootlers.

  128. Great blog here! Also your site loads up fast! What web host are
    you using? Can I get your affiliate link to your host?
    I wish my web site loaded up as quickly as yours lol

  129. Do you mind if I quote a couple of your articles as long as I provide credit and sources
    back to your website? My blog site is in the very same
    area of interest as yours and my users would really benefit
    from some of the information you present here. Please let me know if this ok with you.
    Thank you!

    chaussures louboutin pas cher femme

  130. I am really pleased to glance at this web site posts which contains plenty of valuable
    facts, thanks for providing these data.

  131. An intriguing discussion is definitely worth comment. There’s no
    doubt that that you ought to publish more about this
    issue, it might not be a taboo matter but usually folks don’t talk about such subjects.
    To the next! Cheers!!

  132. Very good post. I am dealing with some of these issues as well..

  133. chanel Canada
    Hi there just wanted to give you a quick heads up.
    The words in your post seem to be running off the screen in Opera.
    I’m not sure if this is a formatting issue or something to do with web browser compatibility but I figured I’d post to let you know.
    The style and design look great though! Hope you
    get the problem solved soon. Kudos

  134. Hey there! I know this is kind of off topic but I was wondering which
    blog platform are you using for this site? I’m getting fed up of WordPress because
    I’ve had issues with hackers and I’m looking at options for another platform.
    I would be fantastic if you could point me in the direction of a good platform.

  135. Nice post. I used to be checking continuously this weblog and I am impressed!
    Extremely useful info specially the ultimate section
    :) I handle such information much. I used to be looking
    for this certain info for a very lengthy time.
    Thanks and good luck.

  136. The world today is filled with so many distractions like TV, internet and just the hectic pace
    of our lives. There’s no getting away from the fact that jogging
    to lose weight worked for me but when I combined it with other methods I really did get the results I was initially looking for.
    John Grube is an expert on the subject of bodyweight training.
    Next of all, having a good posture can also help get your chin into shape.
    Because thoughts like these seem to appear out of thin air just when you
    decide to start an exercise program to lose some

  137. I got what you mean, saved to bookmarks, great site.

  138. Joire especially likes this phone’s voice-prompting feature: “When you plug in a SIM card, it tells you to pick from three languages. The company was launched on March 1, 2005 and then fully bought out by Bell Mobility in May 2009. In terms of sms spying there is nothing more you would need when you are intercepting someone’s text messages.

  139. Heya i’m for the primary time here. I came across this board and I in finding It truly helpful & it helped me out a lot.
    I hope to provide something again and help others like you
    helped me.

  140. What’s most absurd is that punters typically have a long way toward determining who takes the battlefield.
    But this can be a handful and make for engrossing entertainment too.
    They may lack the motivation to invest personal energy in critical project work.

  141. I’m really loving the theme/design of your web site.
    Do you ever run into any web browser compatibility issues?

    A small number of my blog readers have complained about my site not operating correctly in Explorer but looks great in Firefox.
    Do you have any recommendations to help fix this problem?

  142. I’m impressed, I have to admit. Rarely do I encounter a blog that’s
    both educative and interesting, and let me tell you, you’ve
    hit the nail on the head. The problem is something that too few folks
    are speaking intelligently about. Now i’m very happy I came across this during my hunt for something relating to this.

  143. Hey there! I could have sworn I’ve been to this site
    before but after checking through some of the post I realized it’s new to me.
    Anyways, I’m definitely delighted I found it and I’ll be bookmarking and checking back often!

  144. Yesterday, while I was at work, my sister stole my iphone
    and tested to see if it can survive a forty foot drop, just so she can
    be a youtube sensation. My iPad is now destroyed and she has 83 views.
    I know this is completely off topic but I had to share it with someone!

  145. It’s a shame you don’t have a donate button! I’d definitely
    donate to this brilliant blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account.
    I look forward to new updates and will talk about this website with my Facebook group.
    Chat soon!

  146. Your method of telling everything in this piece of writing is actually pleasant, all
    be capable of easily be aware of it, Thanks a

  147. Hello there! Do you know if they make any plugins to safeguard against
    hackers? I’m kinda paranoid about losing everything I’ve worked hard on.
    Any tips?

  148. As the admin of this site is working, no hesitation very shortly it will be famous, due to its quality contents.

  149. Hello! Do you know if they make any plugins to help with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains.
    If you know of any please share. Many thanks!

  150. ) and adores to feature You – Tube films at the best of the search results.

    You – Tube displays advertisements beside the
    user’s videos, and pays users a small share for every ad that
    gets clicked on. It will soon be a part of everyones life, not just us computer
    geeks. Arrangements can then be made with the funeral parlour with regards completing official forms.
    Since then, I have practically stopped all internet video marketing and am
    caught in the lurch.

  151. nitwits  niveous  nobbier  nobbily  nobbled  nobbler  nobbles  noblest.
    awakens  awaking  awarded  awardee  awarder  aweless
     awesome  awfully. deejay   deemed   deepen   deeper   deeply   deewan   deface   defame.

  152. You are so awesome! I do not suppose I’ve read through anything like this before.
    So wonderful to discover somebody with a few original thoughts on this subject matter.
    Really.. many thanks for starting this up. This website is something that is required on the web,
    someone with a little originality!

  153. A Lot of features on these steam showers, I really like the radio opinion and also the lighting style

  154. It’s also of a high quality for one of our more mid priced
    options (around 25 dollars). Automobile chargers don’t seem to be extremely new.
    It is going to also function new applications,
    like the Reminders app and Newsstand, an application
    resembling Folders and i – Books.

  155. In a sea of thousands, that can be a reassuring thing.
    In the 1960s and 1970s, many students demonstrated against the government and hoped to make biog changes
    in society. And look, there’s a message on the fridge for all
    you friends and family from back home.

  156. Hi Daniel, i’m really impressed at your PHP script. Good work, man! However, I have set up everything as you outlined and I have the css, php and html file in my www folder in WAMP but no emails are being sent. What gives…?

  157. It’s awesome in support of me to have a web site, which is good for my knowledge.

    thanks admin

  158. Hey there! Quick question that’s entirely off topic. Do you know how to
    make your site mobile friendly? My blog looks weird when viewing
    from my iphone 4. I’m trying to find a theme or plugin that
    might be able to fix this problem. If you have any suggestions, please share.

    Many thanks!

  159. You will soon by subconscious re-programming find information within your reach and
    even begin exercising without using any weights
    and immediately notice an improvement in your vitality and energy
    levels. Apart from shopping use, groceries, drug stores, fast food chains, and even
    services offered locally are also covered by coupons Montreal thereby
    giving us more flexibility to stretch our budget. Plus paste melting produces unusual bait movement and added dimensions
    to a curious fish.

  160. I am really enjoying the theme/design of your web site. Do you ever run into
    any browser compatibility problems? A handful of my blog readers have
    complained about my site not working correctly in Explorer but looks great in
    Firefox. Do you have any tips to help fix this issue?

  161. Attractive section of content. I just stumbled upon your blog and in accession capital to assert
    that I acquire actually enjoyed account your
    blog posts. Any way I’ll be subscribing to your
    augment and even I achievement you access consistently

  162. Thanks for this website, can blissfully announce we now have a steam shower of our own and we love it

  163. Bad weather can affect the way a quarterback throws a ball and how well a player’s
    shoes grip the turf. But this can be a handful and make for engrossing entertainment too.
    This should be a pre-existing folder but, if not,
    create one.

  164. Every weekend i used to visit this web site, as i wish for enjoyment, for
    the reason that this this site conations really nice funny data too.

  165. I know this web site gives quality depending posts and additional
    information, is there any other website which presents these data in quality?

  166. I am regular reader, how are you everybody? This paragraph posted at
    this website is in fact fastidious.

  167. There is a reason why more families own Labs than any other
    dog in the world. Image matters, and not because people should ‘be pretty’, but
    because ‘people should project pretty’; however
    you look on the outside will affect the way you
    are perceived; who knows, maybe you’ll loose perfect opportunities to make
    friends or meet someone special just because your clothes make you look dirty, sloppy or slutty.

    Sparring – controlled fighting for the purpose of developing speed, capability and fitness.

    Hanging from a horizontal bar is another straightforward, yet mightily effective exercise to increase height.
    Right off, that’s a rare sign of integrity as a communicator.

  168. Nicee post. I was checkimg constanty this weblog and I’m impressed!
    Extremely helpful information specificaally the remaining part
    :) I handle such info much. I used tto be looking for this certain info for
    a very long time. Thank you and best of luck.

  169. Finally, it can get very expensive to keep a website
    going online. There are many other kinds of benefits which you can feel
    after owning a website for your website. If
    this doesn’t work, you should next try restarting your i
    - Phone.

  170. Hello, just wanted to sɑy, Ι enjoyed this blog post.
    It was inspiring. Keep on posting!

  171. Do you mind if I quote a couple of your posts as long as I
    provide credit and sources back to your site? My website is in the
    very same niche as yours and my visitors would truly benefit
    from some of the information you provide here.
    Please let me know if this alright with you.

    Thank you!

  172. Whats up this is kinda of off topic but I was wanting to know if blogs
    use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding expertise so
    I wanted to get guidance from someone with experience. Any help
    would be greatly appreciated!

  173. Especially on the Primley Crater, or Primley shadowed zones because they’re about minus 40 Calvin or something like that
    just we didn’t think of it. Whether itt is neglecting daily exercise or bad
    diets, each year new alarming statistics come in garcinia cambogia precio from the Health Department.
    Your body becomes mpre efficient through improved digestion.
    Whhat make Garcinia Cambogia famous iss its extract, hydroxycitric acid.
    So, mokst people just end up wasting yur money on a scam.

    The authors mentioned that thee Garfcinia Cambogia Extract in Saudi Arabia – Free Shipping.

  174. An outstanding share! I have just forwarded this onto a colleague
    who had been doing a little research on this. And he actually bought me
    dinner due to the fact that I discovered it for him… lol.

    So allow me to reword this…. Thanks for the meal!!
    But yeah, thanks for spending time to talk about this issue here on your blog.

  175. yandoo says:

    It’s not emailing the data? :-(

  176. Have you ever thought about including a little bit more than just your articles?
    I mean, what you say is valuable and everything. But think about if you added some
    great visuals or videos to give your posts more, “pop”!
    Your content is excellent but with pics and video
    clips, this blog could undeniably be one of the very best in its
    field. Wonderful blog!

  177. Recently, one website discussed 10 features they believe that “Grand Theft Auto V”
    needs to have (or not have) to make this another winning installment in the popular series.
    And it’s almost like appreciating something like South Park, where you’re like, this is just satire
    of what criminals are. The good part of the game is that you can undergo different experiences while playing it such
    as being a first person shooter, a third person shooter, and you can ride your car and what not.

  178. i am on the process of developing one webpage where i have tried with your coding for contact us form with local server, that is (easy php) and i could not get any email. Will it work on local server like easy php?

    Thank You

  179. Excellent post however , I was eager to know if you could
    write a litte more on this subject? I’d be very thankful if you could elaborate a bit further.
    Many thanks!

  180. This paragraph will assist the internet people for setting up
    new web site or even a blog from start to end.

  181. eep store loans payday front payday loans online get easy a fast

  182. This site certainly has all of the information and facts I wanted concerning this subject and didn’t know
    who to ask.

  183. Amazing! Its genuinely remarkable post, I have got much clear idea regarding from this post.

  184. After dozens of scripts and attempts to get a form working your is the only one that does. I’m trying to input some css changes to reflect the look of this form…. Second one down. Can I just replace your css with there’s? BTW Many many thanxs!

  185. Amazing website tons of brilliant steam shower knowledge here

  186. Thanks for sharing this script. But i am getting an error of SMTP. Can you plz solve this issue.

  187. This provides bride as well as the groom the chance get
    to know the experienced photographer who. In 2010, practically all wedding
    guests get their very own photographic camera that might generate properly-exposed photos at
    particularly minimal cost. Sometimes it is acceptable to re-post
    it with proper credit plus a link back to the source,
    in fact you shouldn’t re-post it at all.

  188. Newcomers to China may be faced with the
    question of “How can I open Facebook in China. Think of it as just another way to stay on top of everything Gather you love. If you’ve got other requirements like large file transfers, data encryption, video streaming capabilities, server locations, or access to USA or UK restricted sites, you’re going to have to look a bit deeper to find exactly what you’re looking for.

  189. the best method is by calling the producers production. Right
    off the top, let me tell you which attractions at the park should be a
    priority. Customarily it is probable that the price is a
    bit on the higher end.

  190. I just tested it and it worked fine. However, when I receive the e-mails it says ‘Apache’ on the name.
    Can you advise?

    Thanks in advance

  191. I am not sure where you are getting your information, but great topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for magnificent info I was looking for this info for
    my mission.

  192. Thank you so much for the code.

    When I click on send it does not load the thank you page.

    Please advise.

  193. Even though at initial I believed I have to have imagined it, soon after a couple of near wins
    against this chess game it usually did cheat.

  194. Hey there! I know this is somewhat off topic but I was wondering if you
    knew where I could get a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having
    difficulty finding one? Thanks a lot!

  195. I know this web site offers quality dependent posts and additional stuff, is there any other site which
    gives these kinds of information in quality?

  196. Hi there,

    Thanks for the code its works great!

    I have one question though, when an email is sent via the contact form it arrives in my inbox from a sender. (I will not display the address in case this should be kept private). Is there a way to change the sender so it reads: Website Contact Form Inquiry?

    Thank you for all the help.


  197. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with
    the same comment. Is there any way you can remove people from that service?
    Thank you!

  198. Hey there I am so grateful I found your site, I really found you by
    error, while I was looking on Askjeeve for something else, Anyways I am here now and would just like to say thanks
    a lot for a remarkable post and a all round exciting blog (I also love the theme/design), I don’t
    have time to go through it all at the moment but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read a great deal more, Please
    do keep up the excellent work.

  199. Fantastic site. A lot of helpful information here. I’m sending itt to
    some pals ans additionally sharing in delicious. And naturally, thank you for your effort!

  200. Hello There

    We are China michael kors watch factory and we sell all kinds of michael kors purses

    We provide drop shipping to all over the world,you can update our photoes on your own website or your facebook,and when you get orders,we will ship directly to your customers

    For more detail,welcome to check our website and enjoy your shoppping

  201. Just desire to say your article is as astounding.
    The clearness in your put up is just cool and i could think you’re knowledgeable in this subject.
    Fine along with your permission let me to clutch your feed to keep updated with imminent post.
    Thanks a million and please keep up the rewarding work.


  1. [...] Link: [...]

  2. bathroom renovations

    PHP Email Contact Form Tutorial

  3. fat burner says:

    fat burner

    PHP Email Contact Form Tutorial

  4. fast fat loss

    PHP Email Contact Form Tutorial

Speak Your Mind