Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How to easily create an E-mail form for your website

Loading...

Sign in or sign up now!
15,110
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 5, 2009

From my experience, this is the easiest and quickest way to make an E-mail form on an HTML or PHP webpage.

To see the exact syntax detailed in this video go here:
http://www.t3hunderground.com/youtube/Email_Form_Syntax.txt

Feel free to alter the code to add additional fields and so forth!

Enjoy!

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (mushroomHEADBANGERS)

  • hey

    i have copied ur code and have things setup but when i click the send button it doesnt send an email i havent change any of ur code. i dnt have my website on a server yet does this stop the php code from working? i currently building it on my computer

    many thanks

  • @Doubtfire95 You'd need Apache and PHP installed on your computer for it to function properly locally.

  • @mushroomHEADBANGERS this would mean its only on my computer not the web??

    cheers i'm new to this

  • @Doubtfire95 Correct. It's fine :P

    There are tons of free web-sites out there that you can test it on if you don't have your own.

  • Hi,

    I've done all the things but when I try on my pc after I click the "SEND MESSAGE" button appear this message:

    Thank. Click HERE to return to the Home Page' ); } else {print "Message Error"; } ?>

    I've write same as you.

    Sorry for the Bad English :)

    

  • @TheMagicOfGabriel Sounds like you are missing a comma, bracket, or something VERY simple. I'd double-check your code carefully and cross-reference it with the one I hosted.

see all

All Comments (36)

Sign In or Sign Up now to post a comment!
  • Thankyou so much buddy! Helped me alot!!!

  • which yahoo mail r u using!is it australian one!!!in which country u r living tht ur yahoo is differnt from us!!!plz inform me!!thanks

  • Hey Um The Emails Always go to my junk folder and i cant change it

  • Make sure to put the closing bracket after <?php ......

  • There is a mistake in the php code. There is a bracket missing where the <?php is.... Thx mushroomheadbangers, this code works really well.

  • How do I add an extra field for their E-Mail address? Thanks

  • I got this:

    "Warning: mail() [function.mail]: SMTP server response: 554 The message was rejected because it contains prohibited virus or spam content in D:\Hosting\7346810\html\email.­php on line 15

    We encountered an error sending your mail "

    I'm using godaddy I've had SOOO many problems trying to get this form to work :[

  • @miniarma it means you have an error on line 6 in ur php file maybe missing a bracket or something home boy

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more