From an HTML Form to an Email Inbox

Getting the html form data in the email inbox will be a very convenient way to collect user responses very quickly. Except, when you have hundreds of responses per day! Here are the methods you have to get the html form data in your email inbox.

One quick and simple method is to use the 'mailto:you@yourdomain.com' in the 'action' field of the form. This method is very simple; but has many drawbacks.
See the article: Can JavaScript Email a Form?

Note: Using Simfatic Forms you can create web forms and get the form submissions by email. Simfatic Forms generates all the code. See the article: how to make web forms quickly.

Using a Formmail Script

A formmail script is a server side script that gathers the data submitted in the form and mails it to a given email address.

There are many formmail scripts available.

The following section describes how to use a form mail script

Suppose the URL to the formmail script provided to you is http//someserver/cgi-bin/formmail.pl

give this URL in the ACTION attribute of your FORM tag
<FORM ACTION="http//someserver/cgi-bin/formmail.pl" METHOD="POST">
.....Your input elements.....
</FORM>

  • Now you can give whatever input elements you want within the form tags.

  • There are some information that you should provide to the CGI program (like the email address to which the form-data should be sent)
    provide these data as hidden fields in the form
    (using <INPUT TYPE="hidden" ......>)

  • Insert the Submit button.

  • Over! you are ready with your form.

    Read More:

    • Digg
    • del.icio.us
    • Netscape
    • Reddit
    • StumbleUpon
    • Technorati
    • YahooMyWeb

    How to make a form without coding? Click here for a demo.

    Follow me on twitter

    HTML Forms
    HTML Form Tutorial
    The Form Tag
    The Form Submit Button
    Form design software
    How to make a web form
    Make web forms quickly, without coding

    Javascript Form Handling
      Basics
    Using getElementById to get the elements in a form
    Set value of form element using JavaScript
    Get value of form element using JavaScript
    Handling multiple forms using JavaScript
    JavaScript reset/clear a form
      Advanced
    JavaScript Form Validation
    Submitting a form using JavaScript
    Can JavaScript Email a Form?
    Switching the form action field dynamically
    JavaScript Button

    JavaScript Popup Windows
    The window.open method
    The window.close method
    More ...

     
    .   Copyright © 2003-2009 JavaScript-coder.com. All rights reserved.