Enable reply-by-email in your SaaS application
Let users respond to notifications directly from their inbox — no portal login required.
The Problem
- Users abandon your app when forced to log in just to reply to a notification
- Building email parsing infrastructure from scratch takes weeks of engineering time
- Threading conversations reliably across email clients is surprisingly complex
- Handling attachments, inline images, and signatures requires edge-case handling
- Your support team wastes time manually copying email replies into your system
Why Existing Solutions Fall Short
IMAP polling is slow, unreliable, and requires managing persistent connections
Regex parsing of email content breaks constantly with different email clients
Forwarding rules lose metadata and make threading impossible
Running your own mail server means managing spam filters, deliverability, and compliance
You shouldn't have to build this yourself.
How Mailhooks Solves This
Instant Webhook Delivery
Receive structured JSON the moment an email arrives. No polling, no delays.
Thread Identification
Automatic parsing of In-Reply-To and References headers to match replies to threads.
Clean Content Extraction
Get the reply body without quoted text, signatures, or email client cruft.
Attachment Handling
Attachments are extracted, stored, and delivered as downloadable URLs.
How It Works
User receives notification
Your app sends an email notification with a unique reply address.
User hits reply
They respond directly from Gmail, Outlook, or any email client.
Mailhooks receives it
The reply is parsed and structured into JSON automatically.
Webhook fires
Your endpoint receives the reply with thread context.
App updates
The reply appears in your app instantly, threaded correctly.
Code Example
Mailhooks sends a structured webhook payload when a reply arrives.
Webhook Payload
{
"id": "msg_abc123",
"from": "user@example.com",
"to": "reply+ticket-456@inbox.mailhooks.dev",
"subject": "Re: Your support request",
"text": "Thanks, that fixed the issue!",
"html": "<p>Thanks, that fixed the issue!</p>",
"headers": {
"in-reply-to": "<original-msg-id@yourapp.com>",
"references": "<original-msg-id@yourapp.com>"
},
"attachments": []
}Handler Code
// Express webhook handler
app.post('/webhooks/email-reply', (req, res) => {
const { from, to, text, headers } = req.body;
// Extract ticket ID from the reply address
const ticketId = to.match(/reply\+ticket-(\d+)@/)?.[1];
if (ticketId) {
// Add the reply to the ticket thread
await addReplyToTicket(ticketId, {
from,
content: text,
inReplyTo: headers['in-reply-to']
});
}
res.status(200).send('OK');
});Get Started in 3 Steps
Takes ~2 minutes — no email infrastructure required.
Create a Mailhooks account
Sign up for free in seconds.
Create an inbox
Get a unique email address for your use case.
Add your webhook URL
Point to your endpoint and start receiving emails.
Related use cases
Receiving File Attachments via Email
Extract, store, and process email attachments automatically. Get structured metadata and secure download URLs for all file types.
Push Notifications
Trigger n8n Workflows from Email
Use Mailhooks as the email trigger for your n8n automations. Instant webhook delivery, attachment handling, and AI-ready payloads — no IMAP node or polling required.