# Drafts

Save a draft, attach files, and throw one away.

## mailset drafts save

Save a draft, new or by id.

```bash
mailset drafts save --from <from> [--id <id>] [--to <to>] [--cc <cc>] [--bcc <bcc>] [--subject <subject>] [--text <text>] [--thread-id <thread-id>] [--markdown]
```

### Flags

- `--from` (\<from\>, required): One of your addresses.
- `--id` (\<id\>, optional): The draft to change. Left out: a new draft.
- `--to` (\<to\>, optional): Who it goes to, as typed: addresses with commas between them.
- `--cc` (\<cc\>, optional): Who gets a copy, as typed.
- `--bcc` (\<bcc\>, optional): Who gets a hidden copy, as typed.
- `--subject` (\<subject\>, optional): The subject, on one line.
- `--text` (\<text\>, optional): The draft’s text.
- `--thread-id` (\<thread-id\>, optional): The conversation it answers.
- `--markdown` (flag, optional): `text` has Markdown to send as formatting.

With `--json` it prints the [Draft object](https://mailset.app/docs/api/drafts#draft).

Example:

```bash
mailset drafts save --from ana@example.com --to maria@example.com --subject "Quote for March" --text "Hi Maria, the quote is attached."
```

In the API: [POST /v1/drafts.save](https://mailset.app/docs/api/drafts#drafts.save)

## mailset drafts list

List your drafts.

```bash
mailset drafts list
```

With `--json` it prints a list of [Draft objects](https://mailset.app/docs/api/drafts#draft).

Example:

```bash
mailset drafts list
```

In the API: [POST /v1/drafts.list](https://mailset.app/docs/api/drafts#drafts.list)

## mailset drafts remove

Throw a draft away.

```bash
mailset drafts remove <id>
```

### Flags

- `<id>` (argument, required): The draft’s id.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/drafts#drafts.remove-returns).

Example:

```bash
mailset drafts remove dr_7a4f2e9c1b6d3058e2c9a4f1
```

In the API: [POST /v1/drafts.remove](https://mailset.app/docs/api/drafts#drafts.remove)

## mailset drafts attach

Attach a file to a draft.

```bash
mailset drafts attach <id> --file <path> [--content-type <content-type>]
```

### Flags

- `<id>` (argument, required): The draft’s id.
- `--file` (\<path\>, required): The file to send, read from this machine.
- `--content-type` (\<content-type\>, optional): Its media type. Default `application/octet-stream`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/drafts#drafts.attach-returns).

Example:

```bash
mailset drafts attach dr_7a4f2e9c1b6d3058e2c9a4f1 --file quote.pdf --content-type application/pdf
```

In the API: [POST /v1/drafts.attach](https://mailset.app/docs/api/drafts#drafts.attach)

## mailset drafts detach

Take a file off a draft.

```bash
mailset drafts detach <file>
```

### Flags

- `<file>` (argument, required): The attached file’s id, from the draft’s `files`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/drafts#drafts.detach-returns).

Example:

```bash
mailset drafts detach att_3c9e1f7a5b2d4086c7e1a9f2
```

In the API: [POST /v1/drafts.detach](https://mailset.app/docs/api/drafts#drafts.detach)

## mailset drafts forward

Copy a message’s attachments onto a draft.

```bash
mailset drafts forward <id> --message-id <message-id>
```

### Flags

- `<id>` (argument, required): The draft’s id.
- `--message-id` (\<message-id\>, required): The message whose attachments are copied.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/drafts#drafts.forward-returns).

Example:

```bash
mailset drafts forward dr_7a4f2e9c1b6d3058e2c9a4f1 --message-id msg_91b7e4c2a6f03d58b1c4e7a9
```

In the API: [POST /v1/drafts.forward](https://mailset.app/docs/api/drafts#drafts.forward)

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content