# Messages

Send email: whole messages from your product, or a person’s own.

## mailset messages send

Send mail from one of your addresses. A reply (--thread-id) carries the message it answers under your text, as Gmail quotes it; --quote false sends it bare.

```bash
mailset messages send --from <from> --text <text> [--to <a,b,…>] [--cc <a,b,…>] [--bcc <a,b,…>] [--subject <subject>] [--thread-id <thread-id>] [--delay-seconds <n>] [--send-at <n>] [--draft-id <draft-id>] [--markdown] [--quote] [--answering <answering>]
```

### Flags

- `--from` (\<from\>, required): One of your addresses.
- `--text` (\<text\>, required): The message’s text.
- `--to` (\<a,b,…\>, optional): Who it goes to, up to 100 addresses. Or @<path>, to read the JSON from a file.
- `--cc` (\<a,b,…\>, optional): Who gets a copy, up to 100 addresses. Or @<path>, to read the JSON from a file.
- `--bcc` (\<a,b,…\>, optional): Who gets a copy the others don’t see, up to 100 addresses. Or @<path>, to read the JSON from a file.
- `--subject` (\<subject\>, optional): The subject, on one line.
- `--thread-id` (\<thread-id\>, optional): Answering this conversation.
- `--delay-seconds` (\<n\>, optional): Seconds to hold it so it can be taken back, 0 to 120. Default `0`.
- `--send-at` (\<n\>, optional): Scheduled send: when, in ms since the epoch.
- `--draft-id` (\<draft-id\>, optional): The draft this came from. It goes once the mail has.
- `--markdown` (flag, optional): `text` has **bold**, *italic*, lists, quotes or links to send as formatting.
- `--quote` (flag, optional): A reply carries the message it answers under the new text, added here at send time. False sends the new text alone.
- `--answering` (\<answering\>, optional): The conversation’s message this answers, for that quote: the newest that arrived unless given.

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

Example:

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

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

## mailset messages markUnread

Mark a conversation unread from this message on.

```bash
mailset messages markUnread <id>
```

### Flags

- `<id>` (argument, required): The message’s id, from `threads get`.

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

Example:

```bash
mailset messages markUnread msg_91b7e4c2a6f03d58b1c4e7a9
```

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

## mailset messages original

Get a message as it arrived, as an .eml file.

```bash
mailset messages original <id>
```

### Flags

- `<id>` (argument, required): The message’s id, from `threads get`.

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

Example:

```bash
mailset messages original msg_91b7e4c2a6f03d58b1c4e7a9
```

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

## mailset messages star

Star one message, or take its star off.

```bash
mailset messages star <id> [--starred]
```

### Flags

- `<id>` (argument, required): The message’s id, from `threads get`.
- `--starred` (flag, optional): True to star it, false to take the star off.

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

Example:

```bash
mailset messages star msg_91b7e4c2a6f03d58b1c4e7a9
```

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

## mailset messages delete

Delete one message for good, with its files.

```bash
mailset messages delete <id>
```

### Flags

- `<id>` (argument, required): The message’s id, from `threads get`.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

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

Example:

```bash
mailset messages delete msg_91b7e4c2a6f03d58b1c4e7a9
```

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

## mailset messages report

Report one message as junk or phishing, and move it to Junk.

```bash
mailset messages report <id> [--kind junk|phishing]
```

### Flags

- `<id>` (argument, required): The message’s id, from `threads get`.
- `--kind` (enum, optional): `junk` or `phishing`. One of `junk`, `phishing`. Default `junk`.

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

Example:

```bash
mailset messages report msg_91b7e4c2a6f03d58b1c4e7a9 --kind phishing
```

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

## mailset messages unsubscribe

Unsubscribe from whoever sent a message: asked for you, or their page to open.

```bash
mailset messages unsubscribe <id>
```

### Flags

- `<id>` (argument, required): The message’s id, from `threads get`.

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

Example:

```bash
mailset messages unsubscribe msg_91b7e4c2a6f03d58b1c4e7a9
```

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

## mailset messages submit

Send a whole RFC 5322 message as written.

```bash
mailset messages submit --file <path> [--transactional] [--mode transactional|promotional] [--deliver-by <n>]
```

### Flags

- `--file` (\<path\>, required): The file to send, read from this machine.
- `--transactional` (flag, optional): A product’s own mail: no copy in Sent, nobody added to contacts, and only the delivery log remembers it.
- `--mode` (enum, optional): The kind of product mail. `transactional`: a code or a receipt, which can’t carry List-Unsubscribe or Precedence: bulk. `promotional`: a newsletter or an offer, to one address in To; with no List-Unsubscribe of its own, Mailset adds a one-click one and puts the link at `{{mailset_unsubscribe}}` in the body, or on a last line. One of `transactional`, `promotional`.
- `--deliver-by` (\<n\>, optional): The latest it may go out, in milliseconds since 1970. Held past it at submit, it is refused with `retryAt`; still waiting when it comes, it is dropped unsent.

With `--json` it prints the [Receipt object](https://mailset.app/docs/api/messages#receipt).

Example:

```bash
mailset messages submit --file receipt.eml --transactional
```

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

## mailset messages submitMany

Send up to 100 whole messages, each with its own answer.

```bash
mailset messages submitMany --messages <json>
```

### Flags

- `--messages` (\<json\>, required): The messages, 1 to 100, each as `messages submit` takes one. 48 MB together, before base64. Or @<path>, to read the JSON from a file.

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

Example:

```bash
mailset messages submitMany --messages @messages.json
```

`messages.json`:

```json
[
  {
    "data": "<the message as base64>",
    "transactional": true
  }
]
```

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

## mailset messages cancel

Take back a message that hasn’t gone yet.

```bash
mailset messages cancel <id>
```

### Flags

- `<id>` (argument, required): The waiting message’s id, from `messages send` or `messages scheduled`.

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

Example:

```bash
mailset messages cancel out_2e8b6d1f4a9c3075d6b1e8a4
```

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

## mailset messages sendNow

Send a message held for Undo now, without waiting out its time.

```bash
mailset messages sendNow <id>
```

### Flags

- `<id>` (argument, required): The waiting message’s id, from `messages send`.

With `--json` it prints the [Receipt object](https://mailset.app/docs/api/messages#receipt).

Example:

```bash
mailset messages sendNow out_2e8b6d1f4a9c3075d6b1e8a4
```

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

## mailset messages scheduled

List mail waiting for its time.

```bash
mailset messages scheduled
```

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

Example:

```bash
mailset messages scheduled
```

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

---

© 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