January 13th 2011
Trying to make the submit button in a form send the message to my e-mail what is the code
Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.
Posted in Programming & Design | 6 Comments »
January 15th, 2011 at 1:01 am
well, you could use the HTML mailto: function, but that will use a client side mail application in order to send the message i.e. Outlook Express.
If you want to do this the right way, you could use a server side language like PHP which has a mail() function to send the message directly via the SMTP server.
January 18th, 2011 at 8:52 am
You can’t make HTML “do” anything, it’s just content. Words, pictures, tables, etc. You need programming to send an email and since that’s done from the server, it has to be written in a server-side language. (Once you get all the variables set up, though (to, from, subject, body, etc.) it’s just one line of code.)
January 19th, 2011 at 1:55 am
Wherever your site is hosted, check to see if the have any form-to-mail scripts already installed. If so, they will usually have some online help with examples. That’s a common solution if you don’t want to use a server-side scripting language like php or perl.
January 21st, 2011 at 4:05 am
You would need to use perl or cgi to create a server to send the info directly to you. But maybe you can copy the form section (not including the submit button) and paste the code into a form making website like formsite.com or 123contactform.com.
January 22nd, 2011 at 3:11 pm
Recycled answer…
You could use a mailto action in your form. It’s not perfectly reliable for all visitors, since not all browsers know how to invoke all possible local mail clients. There’s sample code for how to do the mailto at:
There’s a discussion of a free alternative that is CGI based at:
Haven’t used it, since I have access to server-side solutions.
January 23rd, 2011 at 1:33 pm
Use a server-side script language if your web site allows it. Otherwise, you will have to use a client-side dependent “mailto:” action to get the form info sent to you.
Your current hosting package MUST allow SMTP ( ) to work. Otherwise, no email can be sent.
Use any of the below sites to make the workable form you need:
For making forms:
These are really good online form makers. Just follow the instructions for making it and uploading file(s).
(WYSIWYG Form Maker)
(Download – Contact Us Script)