---
title: "Account confirmation"
description: "Confirms a new address, a sensitive change or deleting the account before it happens."
plan: Pro
docs: https://ui.edbn.me/docs/emails/account-confirmation
example: change-email
---

# Account confirmation

Confirms a new address, a sensitive change or deleting the account before it happens.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/email-account-confirmation
```

## Dependencies
- edbn: email-button, email-code, email-footer, email-layout, email-shared, email-typography

## Render and send

Render it on the server with its typed props, then pass the result to any email provider. [Sending emails](https://ui.edbn.me/docs/emails/emails-sending.md) has Resend, Postmark and SMTP examples and the dark mode options.

```ts send.ts
import AccountConfirmation from "@/emails/account-confirmation";
import { renderEmail } from "@/emails/_shared/render";

// props: the AccountConfirmationProps type and the samples in examples show every field.
const { subject, html, text } = await renderEmail(AccountConfirmation, props);
await resend.emails.send({ from, to, subject, html, text });
```

## Subjects
- Change email: "Confirm your new email for Kilnwork", previewed as "Confirm maya.lin@pinestreetpottery.example within 1 day to finish the change."
- Reauthenticate: "Your Kilnwork confirmation code", previewed as "Enter the code to confirm it’s you. It expires in 10 minutes."
- Delete account: "Confirm deleting your Kilnwork account", previewed as "Nothing is deleted until you confirm. The link works for 1 hour."

## Usage: Change email

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Examples
- [Change email](https://ui.edbn.me/docs/emails/account-confirmation/change-email) (Markdown: https://ui.edbn.me/docs/emails/account-confirmation.md?demo=change-email)
- [Reauthenticate](https://ui.edbn.me/docs/emails/account-confirmation/reauthenticate) (Markdown: https://ui.edbn.me/docs/emails/account-confirmation.md?demo=reauthenticate)
- [Delete account](https://ui.edbn.me/docs/emails/account-confirmation/delete-account) (Markdown: https://ui.edbn.me/docs/emails/account-confirmation.md?demo=delete-account)

## Files
- emails/account-confirmation.tsx (168 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
