You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding the 'X-MJ-CUSTOMID' header is available when sending the email in the Mailjet specific code into EmailBundle/Swiftmailer.
The header in message Swift_Mime_Message is not rewritten for the following messages because it is already present in the first message sent. But the "X-MJ-CUSTOMID" shall be unique
The solution is simply to delete the header before rewriting the correct header.
To correct the problem =
Add this "$message->getHeaders()->remove('X-MJ-CUSTOMID');" in line 65 in file Mautic\EmailBundle\Swiftmailer\Transport\MailjetTransport. (obviously before the line adding the correct X-MJ-CUSTOMID)
If a bug:
Q
A
Mautic version
2.12.1
PHP version
5.6.30
Steps to reproduce:
Create a segment
Add two leads at least in this segment
Create a manual email and set the precedent segment
Add log in Swift_Transport_AbstractSmtpTransport in the end of send function. Log this => $message->getHeaders()->get('X-MJ-CUSTOMID')->toString() before return.
Send this email
View the log. X-MJ-CUSTOMID is the same for the two differents emails. It's normally different because X-MJ-CUSTOMID is defined like this "leadIdHash-email".
What type of report is this:
Description:
Adding the 'X-MJ-CUSTOMID' header is available when sending the email in the Mailjet specific code into EmailBundle/Swiftmailer.
The header in message Swift_Mime_Message is not rewritten for the following messages because it is already present in the first message sent. But the "X-MJ-CUSTOMID" shall be unique
The solution is simply to delete the header before rewriting the correct header.
To correct the problem =
Add this "$message->getHeaders()->remove('X-MJ-CUSTOMID');" in line 65 in file Mautic\EmailBundle\Swiftmailer\Transport\MailjetTransport. (obviously before the line adding the correct X-MJ-CUSTOMID)
If a bug:
Steps to reproduce:
Log errors:
First email headers =
Message-ID: f25dfe7ce718347c82e775477ac11748@mautic.localhost
X-MJ-CUSTOMID: 5a534d0ab2e08-firstemail@gmail.com
Second email headers =
Message-ID: e284329bfe60c1fea2861f01799f0169@mautic.localhost
X-MJ-CUSTOMID: 5a534d0ab2e08-firstemail@gmail.com
The text was updated successfully, but these errors were encountered: