# MailPanel

> Presents captured mail messages as a status table followed by one detail group per message.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Mail](/docs/extensions/debug-core/reference/panel/mail/index.md) › MailPanel

| final class | `PHPForge\Debug\Panel\Mail\MailPanel` |
| --- | --- |
| Extends | `PHPForge\Debug\Panel` |
| Source | [`src/Panel/Mail/MailPanel.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Mail/MailPanel.php#L18) |

Presents captured mail messages as a status table followed by one detail group per message.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`present()`](#method-present) | Builds the panel view from the decoded mail capture. | `MailPanel` |

## Constants

| Constant | Value | Description | Defined by |
| --- | --- | --- | --- |
| <span id="const-ICON"></span>`ICON` | `\PHPForge\Debug\Panel\Mail\MailMessage::ID->value` |  | `MailPanel` |
| <span id="const-ID"></span>`ID` | `\PHPForge\Debug\Panel\Mail\MailMessage::ID->value` |  | `MailPanel` |
| <span id="const-TITLE"></span>`TITLE` | `\PHPForge\Debug\Panel\Mail\MailMessage::TITLE->value` |  | `MailPanel` |

## Method details

### present() <span id="method-present"></span>

```php
public function present(array<string, mixed> $data): PHPForge\Debug\PanelView
```

Builds the panel view from the decoded mail capture.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$data` | `array<string, mixed>` | Decoded panel payload with an `entries` key holding the captured messages. |

**Returns**

[`PanelView`](https://github.com/php-forge/debug/blob/e4fbb8c3238a4d011ceef5e0094344abd50deaf4/src/PanelView.php): Summary table, per-message detail groups, and toolbar metric.