.NRW

If you've been sent here by a customer, it's likely because your application is broken.

Your customer tried to use your website / application with an email address that looks like [email protected]. While doing so, they received an error that their email address was not acceptable even though an address like this is completely valid.

Extensions like .NRW are a newer version of the .COM and .NET domains that have been around since the 1980s. Not supporting the new extensions is likely impacting other potential customers as well, forcing them to restart the signup process with a different email address or abandoning your service all together.

Technical Information

Your customer's domain name uses a generic top-level domain (gTLD), a concept that was introduced in 2014. The .NRW gTLD is one of those new domains and is used by hundreds of thousands of companies, organizations and individuals around the world.

In fact, there are 1,321 of these new gTLDs and they are all valid to be used for email addresses. You can see a full list of them here.

How to fix the problem?

To fix the problem, your technical team will need to update your application to allow email addresses with the .NRW TLD along with the other 1,320 TLDs. This should be a fairly straightforward change to your validation logic that will allow your customers to use your service with their preferred email address.

Usually, the problem is due to one of these few reasons:

  • Your application is coded to only allow a specific whitelist of TLDs and that list only includes 5-10 of the most popular like .com, .net, .org, etc
  • Your application is using a poorly formatted regular expression that is limiting the length of the TLD section to something arbitrary like 4 characters.

Methods for Email Validation

DNS Validation

The most reliable way to validate an email address is to check if the domain name has a valid MX record. If the domain name does not have a valid MX record, then the email address is not valid as no mail could be delivered without one.

Language Specific Helpers

Many languages have built-in methods for validating email addresses. These methods are usually the best way to validate email addresses as they are maintained by the core developers of the language and are kept up to date with the latest standards.

  • With HTML, you can use the type="email" attribute on the <input> element to validate an email address on your website front-end.
  • In PHP, you can use the filter_var() method with the FILTER_VALIDATE_EMAIL filter to validate an email address.
  • In Ruby, you can use the built in URI::MailTo::EMAIL_REGEXP regular expression to validate an email address.
  • In Python, you can use the built in email.utils.parseaddr() method to validate an email address.
  • In JavaScript, you can use the RegExp object to validate an email address.

Framework Specific Helpers

  • In Laravel, you can use the email validation rule to validate an email address.