How to Create a Simple Mailto Form

Send icon and cursor on monitor, close-up
Send icon and cursor on monitor, close-up. Andy Andrews/Getty Images
01
of 01

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 webpage:

<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.

Format
mla apa chicago
Your Citation
Kyrnin, Jennifer. "How to Create a Simple Mailto Form." ThoughtCo, Sep. 27, 2017, thoughtco.com/how-to-create-simple-mailto-form-3467475. Kyrnin, Jennifer. (2017, September 27). How to Create a Simple Mailto Form. Retrieved from https://www.thoughtco.com/how-to-create-simple-mailto-form-3467475 Kyrnin, Jennifer. "How to Create a Simple Mailto Form." ThoughtCo. https://www.thoughtco.com/how-to-create-simple-mailto-form-3467475 (accessed February 19, 2018).