IT.COM

guide New gTLDs and broken address validators

Spaceship Spaceship
Watch

Alice Wonder Miscreations

Established Member
Impact
177
Recently I registered deviant.email and am setting to an e-mail service on it.

I quickly found that some websites do not know how to properly validate an e-mail address, and will reject perfectly valid addresses - often just because valid TLDs were hard-coded into the web application.

The following PHP functions I believe will work to validate any legal e-mail address, including a DNS check to make sure the domain part exists:

https://deviant.email/emailaddytest.phps

The function in testing:

https://deviant.email/emailaddytest.php

Anyone who needs a proper php e-mail address validation function is free to use it. I consider it public domain.
 
2
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back