# Overview

Canonical URL: https://developers.iagenify.com/sdk/ref/mail/
Language: en

Mailboxes on a domain you attached: real addresses that receive, and send signed with that domain's own key.

Status: 5 methods · the plan decides how many · a host must be enabled first

| Call | Does |
| --- | --- |
| [create({ address, name })](/sdk/ref/mail/create) | Creates a mailbox. |
| [list()](/sdk/ref/mail/list) | Every mailbox of the account. |
| [get(id)](/sdk/ref/mail/get) | One, by identifier **or by address**. |
| [usage()](/sdk/ref/mail/usage) | What the plan allows, before you try. |
| [remove(id)](/sdk/ref/mail/remove) | Deletes it. |
| [contacts](/sdk/ref/mail/contacts) | The address book. |

## The order {#order}

```javascript
const domain = await api.domains.get("example.com");
await domain.mail.enable();                       // 1. the host's records

const box = await api.mail.create({ address: "hello@example.com", name: "Hello" });
await box.send({ to: "someone@example.net", subject: "Hi", text: "…" });
```

A mailbox cannot exist on a host that has not been enabled: the creation answers `mail_not_enabled`, naming the host that is missing.

## Read the plan before you try {#plan}

> **maxMailboxes: 0 means the plan has no mail at all**
>
> Read it from usage() rather than testing the plan's name — the day the plans change, it is the page that lies. A zero is a limit to show, not a dead end to discover.

## Some names are reserved {#reserved}

The addresses a domain is expected to answer for are not available as ordinary mailboxes — they are answered for, and letting anyone take one would break that.

## A mailbox has no quota of its own {#quota}

It consumes the account's object storage, and `quotaBytes` is that quota. Past it, delivery is refused — except the copy of something you sent, which describes a message already gone.

- [mail.enable()](/sdk/ref/domain/mail/enable): Turning a host on before a mailbox can exist.
- [Mailbox](/sdk/ref/mailbox): What a mailbox carries, and what you can do to it.
- [usage()](/sdk/ref/mail/usage): What the plan gives.

```python
domain = api.domains.get("example.com")
domain.mail.enable()                       # 1. the host's records

box = api.mail.create(address="hello@example.com", name="Hello")
box.send(to=["someone@example.net"], subject="Hi", text="…")
```
