Stays a static site
No Netlify Functions, no serverless glue, no eleventy-plugin anything. Your build output is still plain HTML that deploys to any static host.
integrations · static site generator
Eleventy compiles templates to plain HTML, so a contact form is one include away: point a standard <form> at your mailcontact endpoint and submissions land in your project's inbox, with a notification in Discord, Slack, email, or a webhook. No serverless function, no mail service, no plugin.
Because it's plain HTML, the same snippet works unchanged in Nunjucks, Liquid, WebC, markdown, or any other template language 11ty renders. Drop it in _includes once and pull it into any page.
the snippet
Point the form at your project's mailcontact endpoint. Submissions land in your project inbox. No server, no API route, no email service to wire up.
<form action="https://mailcontact.app/api/forms/your-form-id" method="POST">
<label for="name">Name</label>
<input type="text" id="name" name="name" />
<label for="email">Email</label>
<input type="email" id="email" name="email" required />
<label for="message">Message</label>
<textarea id="message" name="message" required></textarea>
<button type="submit">Send</button>
</form>how it works
One inbox per project. Name it after your site and you get a form endpoint and a project email address immediately.
Save the snippet as _includes/contact-form.njk, then {% include "contact-form.njk" %} on your contact page. It's your markup; style it with your site's CSS.
Add a Discord, Slack, email, or webhook channel. Every submission pings you where you already are.
why mailcontact
No Netlify Functions, no serverless glue, no eleventy-plugin anything. Your build output is still plain HTML that deploys to any static host.
Nunjucks, Liquid, WebC, markdown: 11ty passes plain HTML through untouched, so the same include works no matter which engine your project uses.
Eleventy makes it cheap to spin up small sites. Give each one its own inbox and its own address instead of piping everything into your personal email.
faq
No. The form posts directly to your mailcontact endpoint, which stores the message and sends your notifications. Your 11ty build stays fully static.
Yes. The endpoint accepts posts from any origin, so it works wherever your Eleventy output is served, including hosts with no form handling of their own like GitHub Pages.
Completely. mailcontact only receives the POST. The markup above is yours, so your existing stylesheet applies. Add classes, rearrange fields, or wrap it in your own layout.
Add a few lines of JavaScript that intercept submit and POST the fields with fetch, then swap in a thank-you message (the endpoint returns JSON). A configurable redirect for native form posts is coming with the launch.
related
Forms and a real email address, together, with notifications where you live. Launching soon. Be the first to know.