# Email Domain - Auto Assign Company

**URL:** <https://forum.mautic.org/t/email-domain-auto-assign-company/29746>\
**Category:** Ideas and Feature Requests\
**Tags:** segments\
**Created:** [October 24, 2023, 4:32pm UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746 "2023-10-24T16:32:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![colourfulowl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/colourfulowl/32/6942_2.png) [@colourfulowl](https://forum.mautic.org/u/colourfulowl)\
**Post date:** [October 24, 2023, 4:32pm UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/1 "2023-10-24T16:32:51Z")

</div>

My idea is:  
Maybe I’ve missed something, but I don’t recall Mautic automatically assigning contacts to a company, even if the contact uses an email address ending in the companies domain.

Most platforms these days auto allocate people to a company if the company and that person’s email address use the same domain. For example, you get the following form submissions:

- person 1 - [hi@example.com](mailto:hi@example.com)
- person 2 - [hello@demo.com](mailto:hello@demo.com)
- person 3 - [yolo@example.com](mailto:yolo@example.com)
- person 4 - [hello@testing.com](mailto:hello@testing.com)

In other tools, like Hubspot etc, the system would automatically link the people with @example.com emails together, if there is a company with the web URL of [example.com](http://example.com).

I think these groups of people would benefit from this idea:  
Everyone

Why I think they would benefit from this idea:  
Simplification of segmentation and the need to create campaigns.

---

<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:** [November 10, 2023, 6:22pm UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/2 "2023-11-10T18:22:25Z")

</div>

I will use this idea and solve it with LowCode via API 😉  
Will share it here.

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [November 12, 2023, 7:13pm UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/3 "2023-11-12T19:13:10Z")

</div>

A workaround would be to create a segment with Email domain of company as the filter.

 ![Screenshot (3)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/d21b4b4f413b010f4e3bb79a8f6d4cb8fe585c33.png)

and make a campaign to add them to a company name.  
 ![Screenshot (4)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/f5f918d65ac4fc9e2745ffd2167178e0762dfc24.png)

IIRC Company name is a unique identifier and should only create one company.

---

<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:** [November 12, 2023, 8:13pm UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/4 "2023-11-12T20:13:03Z")

</div>

Great idea, but how do you create the company dynamically before you assign the contact to them?

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [December 11, 2023, 1:45pm UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/5 "2023-12-11T13:45:37Z")

</div>

Hi @dirk_s , did you find a solution here?

---

<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:** [December 12, 2023, 2:30pm UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/6 "2023-12-12T14:30:24Z")

</div>

Not finished, but this is how I will implement it:

- Send webhook for contact identified / updated to Tape
- Extract TLD from E-Mail
- Trigger automation  
\*\* lookup company with TLD (custom field of company) via API,  
\*\* doesn’t exist? create…  
\*\* link contact with found / created TLC company

There are some improved automations possible.  
Is there any urgent need? Would build it right away.

---

<div class="post-metadata">

**Author:** ![michaelthwaite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelthwaite/32/12125_2.png) [@michaelthwaite](https://forum.mautic.org/u/michaelthwaite)\
**Post date:** [June 6, 2024, 9:18pm UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/7 "2024-06-06T21:18:35Z")

</div>

+1 for this feature, it’s certainly super-helpful. Could it be native functionality on save of a contact?

MPT

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [June 17, 2024, 10:13am UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/8 "2024-06-17T10:13:30Z")

</div>

Has this been addressed in an existing PR or is someone working on this? I really like to have this and we would be interested in doing it.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [September 19, 2024, 7:55pm UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/9 "2024-09-19T19:55:22Z")

</div>

any update here @dirk_s or @adiux ? Would love to learn about, and bring it up on the Mauticast!

---

<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 22, 2024, 10:36am UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/10 "2024-09-22T10:36:30Z")

</div>

Yes - we do it via our sync to low code and back. Not directly integrated into Mautic via e.g. Plugin.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [September 23, 2024, 6:07am UTC](https://forum.mautic.org/t/email-domain-auto-assign-company/29746/11 "2024-09-23T06:07:55Z")

</div>

ok thx @dirk_s 🙂
