Mailer Collector
Captures email messages sent during a request — recipients, subject, body, and metadata.

What It Captures
| Field | Description |
|---|---|
from | Sender addresses |
to | Recipient addresses |
cc | CC addresses |
bcc | BCC addresses |
replyTo | Reply-To addresses |
subject | Email subject line |
textBody | Plain text body |
htmlBody | HTML body |
charset | Character set |
date | Send date |
Data Schema
{
"messages": [
{
"from": [{"address": "noreply@app.com", "name": "App"}],
"to": [{"address": "user@example.com", "name": "Test User"}],
"cc": [],
"bcc": [],
"replyTo": [],
"subject": "Welcome to App",
"textBody": "Hello, welcome!",
"htmlBody": "<h1>Welcome</h1>",
"raw": "...",
"charset": "utf-8",
"date": "Tue, 31 Mar 2026 12:00:00 +0000"
}
]
}Summary (shown in debug entry list):
{
"mailer": {
"total": 1
}
}Contract
use AppDevPanel\Kernel\Collector\MailerCollector;
$collector->collectMessage([
'from' => [['address' => 'noreply@app.com', 'name' => 'App']],
'to' => [['address' => 'user@example.com', 'name' => 'Test User']],
'subject' => 'Welcome to App',
'textBody' => 'Hello, welcome!',
'htmlBody' => '<h1>Welcome</h1>',
// ...
]);INFO
MailerCollectorAppDevPanel\Kernel\Collector\MailerCollectorCaptures email messages sent by the application. implements SummaryCollectorInterfaceAppDevPanel\Kernel\Collector\SummaryCollectorInterfaceSummary data collector responsibility is to collect summary data for a collector. Summary is used to display a list of previous requests and select one to display full info. Its data set is specific to the list and is reduced compared to full data collected in {@see CollectorInterface}. and depends on TimelineCollectorAppDevPanel\Kernel\Collector\TimelineCollectorCollects Timeline data during application lifecycle..
How It Works
Framework adapters intercept email sending through framework-specific hooks:
- Symfony:
MessageEventlistener on the Mailer component - Laravel:
MessageSendingevent listener - Yii 3: Mailer proxy decorator
Debug Panel
- Message list — all emails with subject, recipients, and send date
- Expandable details — full email headers, text body, and HTML body preview
- Message count — total shown in sidebar badge