1. Computing

How to Create a Simple Mailto Form

By

Create This Simple Mailto Form
A Simple Mailto Form

A Simple Mailto Form

Screen shot by J Kyrnin

To create this simple mailto form, copy and paste this HTML into your web page:

<form action="mailto:you@yourdomain" method="get" enctype="text/plain">
  <p>Name: <input type="text" name="name" /></p>
  <p>Email: <input type="text" name="email" /></p>
  <p>Comments:<br />
  <textarea cols="30" rows="20" name="comments"></textarea></p>
  <p><input type="submit" name="submit" value="Send" />
  <input type="reset" name="reset" value="Clear Form" /></p>
</form>

Be sure to change the highlighted email address to the email address you want to receive the form data.

See an example mailto form

  1. About.com
  2. Computing
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. Forms
  7. Mailto Forms
  8. Mailto Forms - How to Create a Simple Mailto Form

©2014 About.com. All rights reserved.