# Email Validation

**URL:** <https://community.hubspot.com/t/email-validation/127768>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [March 11, 2025, 10:54pm UTC](https://community.hubspot.com/t/email-validation/127768 "2025-03-11T22:54:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSharma278](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@SSharma278](https://community.hubspot.com/u/SSharma278)\
**Post date:** [March 11, 2025, 10:54pm UTC](https://community.hubspot.com/t/email-validation/127768/1 "2025-03-11T22:54:47Z")

</div>

Hello,

Hubspot is throwing an error while creating a contact using API - [https://api.hubapi.com/crm/v3/objects/contacts/batch/create](https://api.hubapi.com/crm/v3/objects/contacts/batch/create)

Hubspot is right, this email address is not correct - "[dcs3md@gmail.comDNC.DNC"](mailto:dcs3md@gmail.comDNC.DNC%22)

But, it clears the RegEx validation I added. And because of this bad email, my entire batch of 100 insert got failed.  
I want to know - how Hubspot is identifying a bad email address? I will try to use the same for my email validation.

Please let me know if you need more information.

Error Message:

 ![SSharma278_0-1741733320457.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/f/0fa7d1fa8cd146500187c9b231fb2b01e445098a.png)

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [March 11, 2025, 11:42pm UTC](https://community.hubspot.com/t/email-validation/127768/2 "2025-03-11T23:42:36Z")

</div>

Hi @SSharma278

My **guess** is that HubSpot checks the “Domain Registry” to see if it’s a valid domain.

I’ve seen variations of a legitimate domain, that are very similar, fail vaildation because of a typo in the domain.

Curious to see if anyone else knows what’s happening?

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of [Webalite](https://www.webalite.com?utm_campaign=community-forum&utm_source=community&utm_content=signature) a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of **Portal-iQ** the world’s first automated [HubSpot Portal Audit](https://portal-iq.com?utm_campaign=community-forum&utm_source=community-forum&utm_content=signature) that helps you work smarter with HubSpot.

---

<div class="post-metadata">

**Author:** ![SSharma278](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@SSharma278](https://community.hubspot.com/u/SSharma278)\
**Post date:** [March 17, 2025, 1:19pm UTC](https://community.hubspot.com/t/email-validation/127768/3 "2025-03-17T13:19:18Z")

</div>

Thank you Mike for the confirmation.
