To accelerate a form’s after-effects by email, you use the mailto: activity in the form’s ACTION attribute. Listing 12.2 is a adapted adaptation of the name and abode anatomy from Listing 12.1 that sends the after-effects by email.
To use this form, change [email protected] to your email address. Notice the enctype=text/plain aspect in the <form> tag. This ensures that the advice in the email bulletin will be in a readable format.
While this provides a quick and bedraggled way of retrieving abstracts from a form, the disadvantage of this address is that it is awful browser-dependent. Whether it will assignment for anniversary user of your folio depends on the agreement of their browser and their email client.
For a added reliable way of sending anatomy results, you can use a CGI form-to-email gateway. Several chargeless CGI scripts and casework are available. You’ll acquisition links to them on this book’s Web site: http://www.jsworkshop.com/.