Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Email Form Submit won't work

8:38 pm on Jul 9, 2011 (gmt 0)

New User

5+ Year Member

joined:July 9, 2011
posts: 2
votes: 0

Hi All!
I have seen this all over the web. I have tried the easy examples, but I still can not get email to send to my account.
Maybe it's the email?
I'm using email from GoDaddy, same place where my website is hosted.

I know my email work, because I can use the same address, and send a test email. So it has to be the code.

<form action="mailto:someemail@sometime.com""ENCTYPE="text/plain" method="POST" reqmessage="One or more required fields need to be entered. Please go back and re-enter." transition="0"/> 
<input type="hidden" name="subject" value="HTMLPage1.html" />
<input type="hidden" name="redirect" value="HTMLPage1.html" />

I built this from samples that I found on the web. First HTML script in a number of years. I'm windows app developer, don't do many web sites.

Any help will be great!


12:39 am on July 10, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
votes: 389

<form action="mailto:someemail@sometime.com""ENCTYPE="text/plain"

Hint: Put spaces around each = sign (you can take them out again later) and make sure there is a space between each tag (ditto). If this is not enough to make it jump up and hit you in the face, the w3c validator [validator.w3.org] is helpful because it puts the error(s) in bright red. At least it did when I pasted the full line into a doc of my own and tried it. It also screamed at an error of my own elsewhere in the code, so this was a good detour for me.
3:20 am on July 10, 2011 (gmt 0)

New User

5+ Year Member

joined:July 9, 2011
posts: 2
votes: 0

Thanks Lucy for the tip!
4:26 pm on July 11, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
votes: 0

I never use these, but try changing the method to GET. You're basically emulating a mailto:link with a form, get is the default action of query strings, etc.

You do have a submit button, right? It has to be input type="submit" (or image), input type="button" has no inherent actions without client side scripting to attach actions to them.