---
title: "Connect Jekyll forms to email"
canonical: "https://glueforms.com/docs/connect-jekyll"
language: "en"
description: "Add a Jekyll contact page with a native HTML form and receive messages by email through GlueForms."
---

# Connect Jekyll forms to email

Receive messages from a Jekyll contact page while keeping the site static. GlueForms receives the POST, so the page does not need a Jekyll plugin or a mail server.

## Connect the form

1. In GlueForms, open [Forms](https://glueforms.com/app/forms), choose your form and copy its receiving URL. Select it above, or replace `YOUR_FORM_URL` in the example.
2. Create `contact.html` in your Jekyll project root with the front matter and HTML below.
3. The example uses your existing `default` layout. Change `layout` if your theme uses another page layout. It must include the page’s `{{ content }}`.

```html
---
layout: default
title: "Contact us"
permalink: /contact/
---

<h1>Contact us</h1>

<form action="YOUR_FORM_URL" method="POST">
  <label>
    Name
    <input name="name" autocomplete="name">
  </label>
  <label>
    Email
    <input name="email" type="email" autocomplete="email" required>
  </label>
  <label>
    Message
    <textarea name="message" rows="4" required></textarea>
  </label>
  <button type="submit">Send message</button>
</form>
```

The `permalink` publishes this page at `/contact/`. Keep the file in your source project, not in generated `_site`. Rebuild and deploy Jekyll after changing the form.

A native submission opens the GlueForms JSON receipt in the browser. Use [JavaScript](https://glueforms.com/docs/javascript) to show a confirmation on your own page.

Publish the page and submit a message. Open it in GlueForms to check the field names, saved content and email notification.

Official documentation: [Jekyll pages](https://jekyllrb.com/docs/pages/), [Jekyll layouts](https://jekyllrb.com/docs/layouts/), [Jekyll permalinks](https://jekyllrb.com/docs/permalinks/).
