Skip to content

Commit

Permalink
fix body logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Aug 24, 2023
1 parent c49f7bb commit 2d41ee0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SparkPostApiTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ protected function logMessageContent(Email $message, $results = [])
$contentType = $message->getHtmlBody() !== null ? "text/html" : "text";

$logContent = $body;
if (is_object($logContent)) {
$logContent = $logContent->toString();
}
$emailHeaders = $message->getHeaders();

// Append some extra information at the end
Expand Down

0 comments on commit 2d41ee0

Please sign in to comment.