# Contact form template

> Free HTML contact form template with name, email and message. Submissions are emailed to you, with spam protection. No backend code.

The classic three-field contact form. Short forms get more replies, so this one asks only for what you need to answer.

Try it

**Use it for:** a general contact page, an About page or a portfolio.

HTML 

```
<form action="https://api.formdoc.dev/v1/submit" method="POST">  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">  <input type="hidden" name="subject" value="New message from your website">   <label for="name">Name</label>  <input type="text" id="name" name="name" autocomplete="name" required>   <label for="email">Email</label>  <input type="email" id="email" name="email" autocomplete="email" required>   <label for="message">Message</label>  <textarea id="message" name="message" rows="5" required></textarea>   <!-- Spam trap: keep it hidden and empty -->  <input type="checkbox" name="botcheck" style="display:none" tabindex="-1" autocomplete="off">   <button type="submit">Send message</button></form>
```

1.  Get a free access key at [app.formdoc.dev/new](https://app.formdoc.dev/new).
2.  Replace `YOUR_ACCESS_KEY` with it and paste the form into your page.
3.  Rename or remove fields freely: each field’s `name` becomes its label in your email.

Using a site builder or framework? See the [platform guides](https://www.formdoc.dev/platforms/).

## Questions about this template

### Can I add a phone number or company field?

Yes. Add another input with a name, for example \<input type="tel" name="phone">. Every field that has a name is sent, and its name becomes the label in your email.

### Where do the messages go?

To the email address you confirmed when you got your access key. Replying to the notification email replies straight to the visitor, because FormDoc sets the reply address to the email they entered.

## More templates

-   [Newsletter signup](https://www.formdoc.dev/templates/newsletter-signup/)
-   [Waitlist](https://www.formdoc.dev/templates/waitlist/)
-   [Feedback](https://www.formdoc.dev/templates/feedback/)
-   [All templates](https://www.formdoc.dev/templates/)
