> For the complete documentation index, see [llms.txt](https://cylexdev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cylexdev.gitbook.io/docs/cylex-phone/exports-and-events/server-console-commands/mail.md).

# Mail

### `sendMail`

Sends an in-app email message to a specific player or all players.

#### Syntax

```bash
sendMail <id> <sender> <subject> <message>
```

#### Parameters

| Parameter | Type   | Description                           |
| --------- | ------ | ------------------------------------- |
| `id`      | number | Player ID (`-1` sends to all players) |
| `sender`  | string | Display name of the sender            |
| `subject` | string | Email subject                         |
| `message` | string | Email message content                 |

#### Example

```bash
/sendMail 1 PoliceHQ Subject Your account has been successfully verified.
```

**Description:**\
Sends an email from **PoliceHQ** to player `1` with the specified subject and message.

> ⚠️ When sending messages to all players (`id = -1`), ensure the content is appropriate and necessary.
