Your software
My Mautic version is: 2.16.2
My PHP version is: 7.2
Your problem
My problem is:
I have a situation that one contact can have multiple companies. And creation is working as expected, both from dashboard and API.
Now, I have a campaign to notify the user on the status of their companies (Company A trial expired, Company B payment success etc.).
I created segments that contains the contacts based on company fields and then I have campaigns that are run for various segments.
All that works just fine until the email is sent. Mautic always take the information from primary company which results in sending misleading information to the contacts.
So for example: Company A is primary company for a contact.
Company A have trial expired, the campaign is run and the contact received proper email with Subject Company A trial expired
Howerver, in case of company B having their payment failed the campaign should send email with subject Company B have failed payment. But instead, the contact received subject Company A have failed payment
I guess this is a bug, or there is some work around it which I can’t figure out.
Did anybody else came across similar issue?
Steps I have tried to fix the problem: