1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-25 02:31:25 +02:00

Fix html body mail on SwiftMailCollector (#619)

This commit is contained in:
parallels999
2024-03-12 11:01:48 -05:00
committed by GitHub
parent 0b407703b0
commit 1fdc3a3007

View File

@@ -43,11 +43,13 @@ class SwiftMailCollector extends DataCollector implements Renderable, AssetProvi
{
$mails = array();
foreach ($this->messagesLogger->getMessages() as $msg) {
$html = $this->showBody ? $msg->getBody() : null;
$mails[] = array(
'to' => $this->formatTo($msg->getTo()),
'subject' => $msg->getSubject(),
'headers' => $msg->getHeaders()->toString(),
'body' => $this->showBody ? $msg->getBody() : null,
'body' => $html,
'html' => $html,
);
}
return array(