Tag
#inbound
10 posts tagged “inbound”.
- 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
The honest Mailgun Routes alternative
Mailgun Routes is a filter-expression engine for inbound mail: you write match_recipient/match_header rules that fire forward() and store() actions, and Mailgun POSTs the parsed message to your endpoint as form-encoded fields. MailKite is a routes alternative that drops the rule DSL — point an address or catch-all at a webhook and the message arrives as a single JSON payload with decoded text/html, SPF/DKIM/DMARC results, and signed attachment URLs. Here's a fair comparison, and where I won't overclaim.
- 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
The honest SendGrid Inbound Parse alternative
SendGrid Inbound Parse POSTs your inbound mail as multipart/form-data and leaves the parsing, decoding, and attachment handling to you — with a well-earned reputation for encoding and attachment mangling. Here's a fair comparison, what MailKite does differently (fully parsed JSON, auth results, signed attachment URLs, no daily cap), and what it doesn't.
- 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.
- 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.