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
-
In GlueForms, open Forms, choose your form and copy its receiving URL. Select it above, or replace
YOUR_FORM_URLin the example. -
Create
contact.htmlin your Jekyll project root with the front matter and HTML below. -
The example uses your existing
defaultlayout. Changelayoutif your theme uses another page layout. It must include the page’s{{ content }}.
---
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 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, Jekyll layouts, Jekyll permalinks.