@@ 321-325 (lines=5) @@ | ||
318 | $tags = explode(',', $tagsHeader->getValue()); |
|
319 | $message->getHeaders()->remove('X-MC-Tags'); |
|
320 | } |
|
321 | if ($message->getHeaders()->has('X-MC-Metadata')) { |
|
322 | $metadataHeader = $message->getHeaders()->get('X-MC-Metadata'); |
|
323 | $metadata = json_decode($metadataHeader->getValue(), JSON_OBJECT_AS_ARRAY); |
|
324 | $message->getHeaders()->remove('X-MC-Metadata'); |
|
325 | } |
|
326 | if ($message->getHeaders()->has('X-MC-InlineCSS')) { |
|
327 | $inlineCss = $message->getHeaders()->get('X-MC-InlineCSS')->getValue(); |
|
328 | $message->getHeaders()->remove('X-MC-InlineCSS'); |
|
@@ 340-344 (lines=5) @@ | ||
337 | $message->getHeaders()->remove('X-Mailgun-Tag'); |
|
338 | } |
|
339 | // @link https://documentation.mailgun.com/en/latest/user_manual.html#attaching-data-to-messages |
|
340 | if ($message->getHeaders()->has('X-Mailgun-Variables')) { |
|
341 | $metadataHeader = $message->getHeaders()->get('X-Mailgun-Variables'); |
|
342 | $metadata = json_decode($metadataHeader->getValue(), JSON_OBJECT_AS_ARRAY); |
|
343 | $message->getHeaders()->remove('X-Mailgun-Variables'); |
|
344 | } |
|
345 | ||
346 | // Build recipients |
|
347 | $primaryEmail = null; |