Tag
#tutorial
10 posts tagged “tutorial”.
- 5 min read
I wrote the same email parser three times — and the hard part was making them fail identically
Parsing MIME in Node, Python, and Go is the easy part. Getting all three to break the same way on the same broken email — and to say so with the same hash — is where the real work is. Here's how, and the two lessons that transfer to any polyglot library.
- 5 min read
Give your AI agent its own email inbox
An AI agent that can't receive email is half-deaf. Here's how to give an agent a real, scoped address on your own domain — inbound parsed to JSON, an event.received loop, and autonomous replies over the same API you already use.
- 3 min read
Receive email in Python (Django & FastAPI)
Install mailkite-dev, point a domain at MailKite, and receive parsed inbound email as JSON in a Django view or a FastAPI handler. The one rule that matters: verify the signature against the raw request body — request.body in Django, await request.body() in FastAPI.
- 4 min read
Build a support inbox in Next.js (email in, tickets out)
Point support@yourdomain at MailKite, parse the inbound email to JSON, and POST it to a Next.js Route Handler. Verify the signature against the raw body, create a ticket, and auto-reply — the whole loop, in real code.
- 5 min read
Cloudflare Email Routing can't reply — here's how to send from your domain
Cloudflare Email Routing forwards inbound mail beautifully and Email Workers hand you the raw message — but there's no first-class way to reply or send from your own domain. Here's exactly where the gap is, why the 'just add Email Service' answer is more assembly than it sounds, and how to receive parsed JSON and reply from one API instead.
- 6 min read
Handling email attachments without losing the £ sign
Inbound attachments are where email parsing goes to die — inline base64 that bloats every webhook, and charset bugs that turn £ into £. Here's why it happens, why SendGrid Inbound Parse is infamous for it, and what a clean attachments[] array with signed URLs looks like instead.
- 5 min read
Verify your inbound email webhooks (HMAC — and why you must)
An unverified webhook endpoint is an open door: anyone can POST a fake email.received event. Here's how to verify the HMAC signature in Node, Python, and Go — and why the raw body matters.
- 4 min read
Reply-by-email: handling inbound replies in your app
When users reply to your notification emails, capture the reply, thread it to the right conversation, and respond — either with an inline ack or a real outbound message.
- 4 min read
Parse inbound email to JSON in Node.js
A hands-on Node.js walkthrough: point a domain at MailKite and receive every inbound email as clean, decoded JSON in one webhook — verify it, then read text, html, and attachments.
- 7 min read
Receiving email is the part nobody warns you about
Sending email is a solved problem. Receiving it — turning real-world MIME into something your app can use — is where everyone quietly loses a week. Here's why inbound is the hard direction, how each option punts, and what one clean webhook looks like instead.