Build Web Forms Faaaast!!
Quickly create your form, install it and receive form submissions by email.
Using Simfatic Forms it is very easy to design,
create, install and maintain web forms;
no coding required! Click here for more info
You can use ‘mailto:email@example.com’ in the action field of the form. When the user presses the submit button of the form, the browser will first show a warning box that the user’s email address will be revealed to the recipient.
If the user decides to proceed, the form data will be sent to the address mentioned in the mailto: tag. The browser will open the default mail client to send the data by email.
<form action="mailto:firstname.lastname@example.org" method="post" enctype="text/plain" > FirstName:<input type="text" name="FirstName"> Email:<input type="text" name="Email"> <input type="submit" name="submit" value="Submit"> </form>
See the sample code above at work:
Disadvantages of ‘mailto:’ method
It is not possible to control the formatting of the form data. The data submitted in the form is sent by the browser. You can’t control the layout of the data.
Browser shows the warning window before sending the data. It may prevent the visitor from submitting the form.
Using Server side script to send email
The right way to send form submissions to email is by receiving the form submissions in a server-side script and then sending the email. The server side scripting language (like PHP Perl, ASP) has more features and facilities to send the email.
For more details, see:
Sending HTML form data to an email address