# Overview

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

One address: its messages, its aliases, its picture and signature, and what it sends.

Status: 4 methods · messages and aliases · quota is the account's

| Member | Does |
| --- | --- |
| [send(options)](/sdk/ref/mailbox/send) | Sends from this address. |
| [update(changes)](/sdk/ref/mailbox/update) | Name, catch-all, picture, signature. |
| [forward(addresses)](/sdk/ref/mailbox/forward) | Copies elsewhere. Five at most. |
| [remove()](/sdk/ref/mailbox/remove) | Deletes it. |
| [messages](/sdk/ref/mailbox/messages/list) | `list` · `get` · `update` · `remove` · `search`. |
| [aliases](/sdk/ref/mailbox/aliases/list) | `list` · `add` · `remove`. |

```javascript
const box = await api.mail.get("hello@example.com");

const { messages, unreadCount } = await box.messages.list({ folder: "inbox", unread: true });
await box.send({ to: "someone@example.net", subject: "Hi", text: "…" });
```

## What it carries {#properties}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `address · local · host` | string |  | The address, and its two halves. |
| `name` | string |  | The display name. |
| `avatar · avatarSource` | string|null |  | Its picture, and where it comes from: `mailbox`, `account`, or nothing. |
| `signature` | object|null |  | `{ html, image }`, added to sends. |
| `source` | string |  | `iagenify` or `imap`. |
| `usedBytes · quotaBytes` | integer |  | What it holds, against the account's object storage. |
| `aliasList · forwardTo` | string[] |  | Addresses that land here, and copies sent on. |
| `catchAll` | boolean |  | Whether unknown addresses on the host land here. |
| `status · lastMessageAt` |  |  | Its state, and when something last arrived. |

## A picture follows a chain {#picture}

The mailbox's own, then the account's, then nothing. `avatarSource` says which — so an interface can offer « use a picture of its own » meaningfully.

- [send()](/sdk/ref/mailbox/send): Sending.
- [messages.list()](/sdk/ref/mailbox/messages/list): Reading.
- [update()](/sdk/ref/mailbox/update): Picture and signature.

```python
box = api.mail.get("hello@example.com")

page = box.messages.list(folder="inbox", unread=True)
messages, unread_count = page["messages"], page.get("unreadCount")
box.send(to=["someone@example.net"], subject="Hi", text="…")
```
