# Selecting proper company in email token

**URL:** <https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547>\
**Category:** Product Support\
**Created:** [May 29, 2020, 9:47am UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547 "2020-05-29T09:47:44Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [March 26, 2024, 8:40am UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547/21 "2024-03-26T08:40:11Z")

</div>

Manually / automatically removing contacts from segment will NOT automatically add them again. Thats the expected behavior.

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [April 10, 2024, 8:35am UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547/22 "2024-04-10T08:35:22Z")

</div>

Hi @dirk_s,

Is it also expected behaviour that the contact doesn’t get added the next day?

I’m using arrival dates and we have a case that someone has a arrival day, for example, today and tomorrow.

Today he is in the segment and that triggers the campaign to send him a mail. After the mail is send, the contact gets removed from the segment. According to the second arrival date the contact should be added to the segment the next day, but that didn’t happen.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 10, 2024, 9:50am UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547/23 "2024-04-10T09:50:20Z")

</div>

Is that a second segment? This should not be related to manual removal from segment one.

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [April 10, 2024, 12:36pm UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547/24 "2024-04-10T12:36:19Z")

</div>

No it’s the same segment. The segment should be daily refreshed, but I noticed that a contact that was removed at day one, didn’t got back into the segment on day 2, while he met the filter settings of the segment.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 11, 2024, 9:22pm UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547/25 "2024-04-11T21:22:51Z")

</div>

Not sure if I fully understand your scenario - why do you remove the contact at day 1 just to readd the contact at day 2?

Maybe you can use two different dynamic segments for that?

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [April 12, 2024, 7:26am UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547/26 "2024-04-12T07:26:04Z")

</div>

Hi @dirk_s

I’m using Mautic as a reservation platform. I want to setup a campaign that guests receive a mail 14 days before their arrival date. I setup a segment which checks which guest are arriving in 14 days. They will be added to the segment and start a campaign which sends them a mail. Then at 0:00 the next day people are removed from the segment and the campaign because they don’t match the filter criteria.  
But if there are guests with two arrival dates for two consecutive days (for example: they made a second reservation for familymembers with a arrival day one day later) it’s works a bit different.

In my initial setup I had contacts removed from the segment with a campaign action. But I noticed they where not added the second day when they would again meet the filter requirements.

I now got it working without the change segment action. I use a “jump to event” action with a wait one day option. So the next day if guests are still matching the filter criteria they will be in the segment and will receive a second mail.

Does it make any sense?

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 12, 2024, 8:24pm UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547/27 "2024-04-12T20:24:18Z")

</div>

Where do you store the arrival date? If its one person, you will have one arrival date in a custom field? Where will the second arrival date be stored? Do you use the custom objects plugin?

I wouldn’t worry to much and only send them one time per trip through the campaign, no matter if other family members arrive a day later.

I would need to double check, but when a segment adds a person to a campaign, removing it from the segment shouldn’t automatically remove the person from the campaign too. Is this the case?

---

<div class="post-metadata">

**Author:** ![christophe9880](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/christophe9880/32/2815_2.png) [@christophe9880](https://forum.mautic.org/u/christophe9880)\
**Post date:** [September 6, 2024, 8:25am UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547/28 "2024-09-06T08:25:31Z")

</div>

I have the same issue, but is not solved yet in the comments here. This is my case:

I need to send some mails with text “Dear customer, your company `{contactfield=companyname}`is located in…”

But if a contact is assigned to 2 companies, he should receive 2 mails with the companyname of each company, not only an email with the companyname of the primary company.

How can I do this?

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [September 6, 2024, 2:41pm UTC](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547/29 "2024-09-06T14:41:16Z")

</div>

Hi, not within Mautic.  
A contact is a single contact. Within Mautic you would need to have two different contacts with different emails for the same person. And only one connection to a company.

This touches a very interesting special case in CRM, where a minority of people works for more than one company. In most client projects we came to the conclusion, that for that case this person will have 2 contact records as in 90% of cases they also use different contact data for different companies. To make extra effort for all contacts just because of the view working for several companies, didn’t make economical sense.

[Previous page](https://forum.mautic.org/t/selecting-proper-company-in-email-token/14547.md?page=1)
