# inboxjot emails

Send and track emails.

## emails send

Send an email.

```sh
inboxjot emails send [options]
```

| Option                     | Description                                           |
| -------------------------- | ----------------------------------------------------- |
| `--from <ADDRESS>`         | Sender, on a verified domain.                         |
| `--to <ADDRESS>`           | Recipient. Repeat it for more.                        |
| `--cc <ADDRESS>`           | Carbon copy recipients.                               |
| `--bcc <ADDRESS>`          | Blind carbon copy recipients.                         |
| `--reply-to <ADDRESS>`     | Addresses that replies go to.                         |
| `--subject <TEXT>`         | Subject line.                                         |
| `--html <HTML>`            | HTML body.                                            |
| `--html-file <PATH>`       | Read the HTML body from a file.                       |
| `--text <TEXT>`            | Plain text body.                                      |
| `--text-file <PATH>`       | Read the plain text body from a file.                 |
| `--template <ID>`          | Send a template instead of a body.                    |
| `--data <JSON>`            | Template variables.                                   |
| `--attach <PATH>`          | Attach a file; repeat for more files.                 |
| `--tag <NAME=VALUE>`       | Add a tag; repeat for more tags.                      |
| `--header <'NAME: VALUE'>` | Add an email header; repeat for more headers.         |
| `--scheduled-at <TIME>`    | Send later, such as 2026-11-20T09:00:00Z or "in 10m". |
| `--input <PATH>`           | Read the whole JSON body from a file, or - for stdin. |
| `--dry-run`                | Print the JSON body and send nothing.                 |
| `--wait`                   | Wait until it is delivered or bounced.                |
| `--timeout <TIMEOUT>`      | Stop waiting after this long. Default: `2m`.          |

```sh
inboxjot send --from "Acme <hi@acme.com>" --to riti@example.com --subject "Welcome" --text "Thanks for signing up"
inboxjot send --from hi@acme.com --to riti@example.com --template tpl_06d2mfk8r5cx3nd8vt1qa --data '{"name":"Riti"}'
inboxjot send --from hi@acme.com --to bounced@inboxjot.dev --subject Test --text Hi --wait
```

## emails batch

Send many emails from a JSON or JSONL file.

```sh
inboxjot emails batch <PATH>
```

| Argument | Description                                                   |
| -------- | ------------------------------------------------------------- |
| `PATH`   | JSON array or JSONL file of emails, or - for stdin. Required. |

```sh
inboxjot emails batch emails.jsonl
```

## emails list

List emails.

```sh
inboxjot emails list [options]
```

| Option                | Description                                                              |
| --------------------- | ------------------------------------------------------------------------ |
| `-n, --limit <LIMIT>` | Show at most this many rows. Default: `50`.                              |
| `--all`               | Show every row, one page after another.                                  |
| `--after <CURSOR>`    | Show the rows after this cursor.                                         |
| `--before <CURSOR>`   | Show the rows before this cursor.                                        |
| `--status <STATUS>`   | Show only emails with this status, such as bounced.                      |
| `--query <TEXT>`      | Search recipients and subjects.                                          |
| `--source <SOURCE>`   | Show only emails from api, smtp, dashboard, mcp, campaign or automation. |
| `--since <TIME>`      | Show emails sent after this time, such as 7d or 2026-11-01T00:00:00Z.    |
| `--until <TIME>`      | Show emails sent before this time, such as 1h or 2026-11-08T00:00:00Z.   |

```sh
inboxjot emails list --status bounced --since 7d
inboxjot emails list --query riti@example.com --json
```

## emails inspect

Show an email and its status.

```sh
inboxjot emails inspect <ID> [options]
```

| Argument | Description                          |
| -------- | ------------------------------------ |
| `ID`     | Email ID, such as eml_123. Required. |

| Option                | Description                                                  |
| --------------------- | ------------------------------------------------------------ |
| `--wait`              | Check every 2 seconds until the email is delivered or fails. |
| `--timeout <TIMEOUT>` | Stop waiting after this long. Default: `2m`.                 |

```sh
inboxjot emails inspect eml_123
inboxjot emails inspect eml_123 --wait
```

## emails reschedule

Change when a scheduled email goes out.

```sh
inboxjot emails reschedule <ID> [options]
```

| Argument | Description                          |
| -------- | ------------------------------------ |
| `ID`     | Email ID, such as eml_123. Required. |

| Option        | Description                                              |
| ------------- | -------------------------------------------------------- |
| `--at <TIME>` | New send time, such as 2026-11-20T09:00:00Z or "in 10m". |

```sh
inboxjot emails reschedule eml_123 --at "in 2h"
```

## emails cancel

Cancel a scheduled email.

```sh
inboxjot emails cancel <ID>
```

| Argument | Description                          |
| -------- | ------------------------------------ |
| `ID`     | Email ID, such as eml_123. Required. |

```sh
inboxjot emails cancel eml_123
```

## emails attachments list

List the attachments of an email.

```sh
inboxjot emails attachments list <ID>
```

| Argument | Description                          |
| -------- | ------------------------------------ |
| `ID`     | Email ID, such as eml_123. Required. |

```sh
inboxjot emails attachments list eml_123
```

## emails attachments download

Download the attachments of an email.

```sh
inboxjot emails attachments download <ID> [options]
```

| Argument | Description                          |
| -------- | ------------------------------------ |
| `ID`     | Email ID, such as eml_123. Required. |

| Option               | Description                                |
| -------------------- | ------------------------------------------ |
| `-o, --output <DIR>` | Folder to save the files in. Default: `.`. |

```sh
inboxjot emails attachments download eml_123 --output ./files
```

## emails tail

Show email events as they happen.

```sh
inboxjot emails tail [options]
```

| Option                | Description                                                                                                                                                                                                                                             |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--events <EVENTS>`   | Show only these email event types, separated by commas. One of `email.sent`, `email.delivered`, `email.opened`, `email.clicked`, `email.bounced`, `email.complained`, `email.delivery_delayed`, `email.rejected`, `email.failed`, `email.unsubscribed`. |
| `--timeout <TIMEOUT>` | Stop after this long.                                                                                                                                                                                                                                   |

```sh
inboxjot emails tail
inboxjot emails tail --events email.bounced,email.complained
```
