Building a Jekyll Contact Form
Slapform was made for sites on platforms like Jekyll, so this is a super easy task.
Simple Jekyll HTML Form Example
To use Slapform with an HTML form on a Jekyll site, you just need to paste our form template on your site and add your email. Then you can start receiving submission straight to your inbox!
Copy-paste this code and just change [email protected] to your own email.
<form method="POST"
action="https://api.slapform.com/[email protected]">
<input type="email" name="email">
<textarea type="text" name="message"></textarea>
<button type="submit">Submit</button>
</form>
Each <input>
element needs to have the name
attribute in order to be received properly by Slapform.
Upon submitting a form you've enabled with Slapform, you simply receive the data in an email. No backend code required!
Want a live example?
Want to see a fully working example? We made a custom and free Jekyll template that includes support for Slapform out of the box. Check out Massively, the Jekyll template.