We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79efce5 commit 18f53dcCopy full SHA for 18f53dc
Mailer/Transport/SparkpostTransport.php
@@ -149,7 +149,7 @@ private function buildContent(MauticMessage $message): array
149
? $fromAddress->getName().' <'.$fromAddress->getAddress().'>'
150
: $fromAddress->getAddress(),
151
'subject' => $message->getSubject(),
152
- 'headers' => $this->buildHeaders($message),
+ 'headers' => $this->buildHeaders($message) ?: new \stdClass(),
153
'html' => $message->getHtmlBody(),
154
'text' => $message->getTextBody(),
155
'reply_to' => current($message->getReplyTo())->getAddress(),
0 commit comments