Fair-code workflow automation — connect anything to email.
Works with MailKite — point n8n's email nodes at MailKite's SMTP relay, or trigger on a MailKite inbound webhook. See /docs/integrations/n8n.
A minimal, copy-paste starter. Swap in your own domain and API key.
import { verifyWebhook } from "@mailkite/client";
// MailKite POSTs every inbound email at your domain as JSON.
// Point a route at this handler in the MailKite dashboard.
export default async function handler(req: Request) {
const raw = await req.text();
const sig = req.headers.get("x-mailkite-signature") ?? "";
// Reject anything not signed by your webhook secret
const ok = await verifyWebhook(sig, raw, process.env.MK_WEBHOOK_SECRET!);
if (!ok) return new Response("bad signature", { status: 401 });
const email = JSON.parse(raw);
// Route into n8n: open a ticket, create a task, store a record
await routeIntoName(email); // email.from · email.subject · email.text
return new Response(JSON.stringify({ ok: true }));
} n8n is an extensible, node-based workflow automation platform (fair-code) that connects services through visual workflows. Its email nodes can send via SMTP and trigger workflows on inbound mail, making it a flexible choice for automating mail-driven processes alongside the rest of your stack. Self-host or use the managed cloud.
Open source (self-host) + managed plans
Yes — set n8n's SMTP node to smtp.mailkite.dev with your API key as the password.
Yes — set a MailKite inbound route to POST to your n8n webhook URL and build a workflow on the JSON event.
Point a domain, drop in a webhook URL, and send your first email in minutes. Unlimited domains, no credit card.