Open egulias opened 10 years ago
"name@localhost" is a valid email address. What do you mean by false-positive?
On Apr 11, 2014, at 9:00, Eduardo Gulias Davis notifications@github.com wrote:
Hi! The Email validator is curretnly ussing php built-in filter_var. As you may know it allows for false negatives on emails like name@localhost. Would you consider integrating https://github.com/egulias/EmailValidator for the validation? It has been added as a (soft)dependency in Symfony (symfony/symfony#9140). Swiftmailer is considering it to. Thanks!
— Reply to this email directly or view it on GitHub.
by false negative I mean that filter_var
will say email@localhost
is invalid.
I hame misunderstood you.
var_dump(filter_var('email@localhost', FILTER_VALIDATE_EMAIL));
Yes, that's not right. I will consider https://github.com/egulias/EmailValidator as well as the alternatives.
Great! Thanks. If you find an alternative, let me know so I can check it too.
Hi! The Email validator is curretnly ussing php built-in
filter_var
. As you may know it allows for false negatives on emails likename@localhost
. Would you consider integrating https://github.com/egulias/EmailValidator for the validation? It has been added as a (soft)dependency in Symfony (https://github.com/symfony/symfony/pull/9140). Swiftmailer is considering it to. Thanks!