From 18de950d8fcc29d5ff33a154dc14225a807225b9 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 27 Oct 2019 12:32:28 +0100 Subject: Mail log: Formatting --- src/Mail/Transport/LogTransport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Mail/Transport/LogTransport.php') diff --git a/src/Mail/Transport/LogTransport.php b/src/Mail/Transport/LogTransport.php index 6e351302..632a6bc0 100644 --- a/src/Mail/Transport/LogTransport.php +++ b/src/Mail/Transport/LogTransport.php @@ -31,11 +31,11 @@ class LogTransport extends Transport &$failedRecipients = null ): int { $this->logger->debug( - 'Mail: Send mail "{title}" to "{recipients}":' . PHP_EOL . '{content}', + 'Mail: Send mail "{title}" to "{recipients}":' . PHP_EOL . PHP_EOL . '{content}', [ 'title' => $message->getSubject(), 'recipients' => $this->getTo($message), - 'content' => (string)$message->getHeaders() . PHP_EOL . PHP_EOL . $message->toString(), + 'content' => $message->toString(), ] ); -- cgit v1.2.3-54-g00ecf