Skip to content

Commit

Permalink
Merge pull request #5701 from XRaccourci/Issue5532
Browse files Browse the repository at this point in the history
Second Fixes #5532 problem with MailjetTransport header X-MJ-CUSTOMID
  • Loading branch information
alanhartless committed Mar 26, 2018
2 parents eec5676 + adba718 commit 80f057e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function send(\Swift_Mime_Message $message, &$failedRecipients = null)
// add leadIdHash to track this email
if (isset($message->leadIdHash)) {
// contact leadidHeash and email to be sure not applying email stat to bcc
$message->getHeaders()->remove('X-MJ-CUSTOMID');

$message->getHeaders()->removeAll('X-MJ-CUSTOMID');

$message->getHeaders()->addTextHeader('X-MJ-CUSTOMID', $message->leadIdHash.'-'.key($message->getTo()));
}

Expand Down

0 comments on commit 80f057e

Please sign in to comment.