voku / email-check Goto Github PK
View Code? Open in Web Editor NEW:envelope: E-Mail Address Validator (syntax, dns, trash, typo)
License: MIT License
:envelope: E-Mail Address Validator (syntax, dns, trash, typo)
License: MIT License
Hi,
please remove miam.kd2.org from your "domainsTemporary.php" file as it is our internal email server, and is not publicly accessible, and does not provide temporary emails either.
Thank you.
Wouldn't it be a viable case for a valid email with a correct MX record, but no A-record? Email will be received that way.
It's an edge case, but wouldn't it be more correct to change
return !\checkdnsrr($domain . '.', 'MX') || !\checkdnsrr($domain, 'A');
to
return !\checkdnsrr($domain . '.', 'MX');
in the code here ?
Currently, the isValid
callback always converts the local and domain part into Punycode.
However, lots of environments don't support Punycode and we'd like to validate email addresses such that special characters like German umlauts or other accented character would be recognized as invalid.
I'll be posting a PR in a minute to fix this.
Minutes.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
composer.json
php >=7.0.0
symfony/polyfill-intl-idn ~1.10
phpunit/phpunit ~6.0 || ~7.0
fzaninotto/faker ~1.7
.idea
is user-specific and should not appear in a project.gitignore
. Consider adding it to the user global.gitignore
instead.
/nbproject/private/
.idea
# composer
vendor
composer.lock
Posted from SensioLabsInsight
It looks like you have taken Michael Rushton's regex pattern as used in PHP, but you forgot to add the copyright notice?
* Michael's regex carries this copyright:
523 *
524 * Copyright © Michael Rushton 2009-10
525 * http://squiloople.com/
526 * Feel free to use and redistribute this code. But please keep this copyright notice.
RFC 7505 specifies "null MX" for when a domain explicitly does not support email.
Even if a null MX record is set this check will still return that the address is valid.
$emailCheck = EmailCheck::isValid("[email protected]", false, false, false, true);
// expected false
// got true
In isDnsError instead of using checkdnsrr it could use dns_get_record and then check the priority.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.