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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user