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.
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.