# 'valid email' condition always results in a 'valid' email

**URL:** <https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209>\
**Category:** Product Support\
**Created:** [July 15, 2020, 5:43am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209 "2020-07-15T05:43:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lexgabrees](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lexgabrees/32/4467_2.png) [@lexgabrees](https://forum.mautic.org/u/lexgabrees)\
**Post date:** [July 15, 2020, 5:43am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209/1 "2020-07-15T05:43:43Z")

</div>

Hey all,

As the title says … it doesn’t matter what email is put into a form. The ‘has valid’ email condition that I am using in the campaign always results in the email being ‘valid’ …

I’m using Mautic 3.01 and php 7.3 … can’t find anything weird in the logs either … Could be that I don’t recognize the error though …

Anyone have an idea what the issue might be ?

Thanks,  
Lex

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [July 15, 2020, 6:35am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209/2 "2020-07-15T06:35:52Z")

</div>

There was a bug opened on this issue a while ago, but it was supposed to be fixed:

> <https://github.com/mautic/mautic/issues/7904>
>
> Bug Description
> The Has valid email address campaign condition always results true.
> I traced back the error to a point where I think...

---

<div class="post-metadata">

**Author:** ![lexgabrees](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lexgabrees/32/4467_2.png) [@lexgabrees](https://forum.mautic.org/u/lexgabrees)\
**Post date:** [July 15, 2020, 8:02am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209/3 "2020-07-15T08:02:44Z")

</div>

Yes … I saw that one … and I was wondering if it was fixed … so, if anyone else is experiencing it, or it’s my setup that is somehow producing the issue … Would be nice to know …

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [July 15, 2020, 8:25am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209/4 "2020-07-15T08:25:02Z")

</div>

I Think i know what you getting at…I guess you want to check if the email adress is actually valid (has MX records for example). That is not what the validation does. Basically its just checks if the email field is empty or not. Since you cant insert melformed email adresses either manually or via a form (without “@” or without a suffix.), that’s the only validation possible

You can achieve what you want pretty easely with a bit of programming and using validation services

---

<div class="post-metadata">

**Author:** ![lexgabrees](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lexgabrees/32/4467_2.png) [@lexgabrees](https://forum.mautic.org/u/lexgabrees)\
**Post date:** [July 15, 2020, 9:02am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209/5 "2020-07-15T09:02:28Z")

</div>

Yes … I can hook mautic up to neverbounce and so on, but I read about this option in mautic and I assumed that it checks MX records …

Have I misunderstood that ?

> **[Using Mautic Campaign Validation To Make Your Marketing List Valuable](https://www.mautic.org/blog/using-mautic-campaign-validation-make-marketing-list-valuable)**
>
> Learn how to use the email validation feature in your Mautic campaigns to ensure that your contacts have a valid email address and improve list quality

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [July 15, 2020, 9:29am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209/6 "2020-07-15T09:29:02Z")

</div>

Interesting, from the Github issue i thought it only relevant for blank email. Well, i tested this, and it seems to work. I tried it with a campaign the uses that action and adds a tag if the email not valid. i tried it with an email “111@1111.111” and the tag was added

"

---

<div class="post-metadata">

**Author:** ![lexgabrees](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lexgabrees/32/4467_2.png) [@lexgabrees](https://forum.mautic.org/u/lexgabrees)\
**Post date:** [July 15, 2020, 9:56am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209/7 "2020-07-15T09:56:07Z")

</div>

It does work with me as well for something like 111@11111.111 … but it it doesn’t with some nonsense email like : [fhsdjkfhsuirweuifhsdkjcnweiufrgweuyfgweufgweyuf@sdkfljsofiwur89whvsdokw2223423.com](mailto:fhsdjkfhsuirweuifhsdkjcnweiufrgweuyfgweufgweyuf@sdkfljsofiwur89whvsdokw2223423.com) … That doesn’t get tagged …

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [July 15, 2020, 10:21am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209/8 "2020-07-15T10:21:50Z")

</div>

I can see that too. Might be a bug with the validate email MX record

---

<div class="post-metadata">

**Author:** ![lexgabrees](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lexgabrees/32/4467_2.png) [@lexgabrees](https://forum.mautic.org/u/lexgabrees)\
**Post date:** [July 15, 2020, 10:58am UTC](https://forum.mautic.org/t/valid-email-condition-always-results-in-a-valid-email/15209/9 "2020-07-15T10:58:33Z")

</div>

Yes … that’s what I though … a ‘solved’ bug that’s still a bug … anyway, it’s good to know that it’s probably still a bug … too bad… this feature can be very valuable.
