---
title: "How Website gives every site an inbox with Nextmail"
description: "Website uses a catch-all domain, signed webhooks and threaded replies on Nextmail to give each AI-built site its own working email address and inbox."
url: "https://openemail.uk/customers/website"
---

[All customers](https://openemail.uk/customers.md)

AI website builder

# Website gives every site its own inboxwith Nextmail.

Website builds sites for businesses with AI. Each site gets a working email address: mail arrives in the owner's dashboard, replies stay in the thread, and newsletters go out from the site itself.

[Visit businesswebsite.ai](https://businesswebsite.ai)

services/siteInbox/replySiteInboxThread.ts

```
const sent = await getSiteMailClient().emails.send(  {    from: senderName ? { email: address, name: senderName } : address,    to: recipient,    subject,    html,    threadId: providerThreadId,    signature: false,    tracking: { opens: false, clicks: false },    tags: { site: websiteId, email: rowId, kind: 'transactional', source: 'reply' },  },  { idempotencyKey: `site:${websiteId}:${rowId}`, signal: AbortSignal.timeout(20_000) },)
```

A reply written in the dashboard is sent with the original thread id, so it lands in the same conversation on both sides.

20

SDK methods in use, across email, threads, files and domains

16

webhook events it acts on

Sep 2026

The month it started on Nextmail

What runs through it

## What Website runs on Nextmail.

- An address for every site Each site gets an address on Website's mail domain, picked from its subdomain or name. A renamed address keeps working as an alias.
- An inbox in the dashboard Incoming mail arrives on a signed webhook, and Website reads the thread from Nextmail to show it to the site owner.
- Threaded replies Replies go out from the address the mail was sent to, inside the same thread.
- Newsletters from the site Marketing email goes out in batches, one message per recipient, each with its own unsubscribe link.
- Branded domains Premium sites connect their own domain. Website adds it to Nextmail, writes the DNS records when it manages the domain, and verifies it.
- Files as links Attachments are uploaded to Nextmail and sent as a download link on the site's mail domain.

How it was built

## How Website put it together.

1. 01
   
   One mail domain for every site
   
   Website pointed a single mail domain at Nextmail with a catch-all, so a new site needs no setup at Nextmail at all. Its address is just a row in Website's database.
2. 02
   
   Listen for every event
   
   A signed webhook delivers each event. Website stores it, answers at once and processes it in the background, retrying with backoff if a step fails.
3. 03
   
   Read the thread, keep the metadata
   
   For a new message Website fetches the thread with threads.get and stores the metadata and a short snippet. Bodies and attachments load from Nextmail when the owner opens them.
4. 04
   
   Reply in the same thread
   
   Replies use emails.send with the thread id and an idempotency key, so a double click never sends twice.

Features in use

## The Nextmail features Website relies on.

Catch-all addresses

Every address on the domain receives, including ones that have never been created. One switch closes it.

hello@ yourdomain.com delivered

billing@ yourdomain.com delivered

careers@ yourdomain.com delivered

anything-at-all@ yourdomain.com delivered

oct-2026-signup@ yourdomain.com delivered

Webhooks

Tell your endpoint when mail arrives, instead of making you poll.

/threads?query=invoice

{ "threads": 12 }

Same mailbox, whether a person or a program is holding it.

Multiple domains

Point several domains at one inbox, subdomains included.

acme.com acme.dev team.acme.com hey.acme.io

See when mail you sent was opened

Whether a message you sent has been opened, when, how many times and which of its links were followed. Off until you turn it on, and plain about the readings it cannot get.

Files

Every attachment this mailbox holds, in one place you can search, download and clear out.

Typed SDKs

TypeScript, Python, Ruby, PHP, Go, Java and C# clients, one method for every operation.

/threads?query=invoice

{ "threads": 12 }

Same mailbox, whether a person or a program is holding it.

Questions

## Questions about Website and Nextmail.

More customers

## Other teams building on Nextmail.

- [Modulify AI website platform The fastest AI platform for websites and web apps.](https://openemail.uk/customers/modulify.md)
- [Envless Secrets manager Keeps env variables encrypted, versioned and in sync across every environment.](https://openemail.uk/customers/envless.md)
- [Ip2Geo IP geolocation API Turns IP addresses into location data with one API call.](https://openemail.uk/customers/ip2geo.md)
- [Wallpapppers Wallpaper gallery Free, reimagined wallpapers that give your screens a fresh look.](https://openemail.uk/customers/wallpapppers.md)
- [Revgraphs Revenue dashboard Reads every Polar, Stripe, Dodo Payments and Paddle account as one revenue statement.](https://openemail.uk/customers/revgraphs.md)
- [BetterFileTransfer File transfer Sends big files as a private link, encrypted end to end by default and gone on the day the sender picks.](https://openemail.uk/customers/betterfiletransfer.md)
- [Love Envelope Love invitations Turns a love invitation into one link, with every reply collected and counted.](https://openemail.uk/customers/love-envelope.md)

[All customers](https://openemail.uk/customers.md)

## Mint a key. Send something.

Full API, MCP and SDK access on every plan, the free one included.

[Open mail](https://openemail.uk/mail/inbox) [Get Started](https://openemail.uk/signup.md)[Read the API quickstart](https://openemail.uk/docs/api/quickstart.md)
