re: Properly validating e-mail addresses VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION

I have just tested a local address with an emoji. PHP does not accept that.

Seems like PHP implementation is perfect, but they check against older RFC.

Isn't emojis in domain names a hasardous spec anyways ? (talking in terms of support and implementations).

So the PHP implementation becomes increasingly less usable as more and more Unicode domains are registered.

Hazardous, but rule-compliant. libvldmail has a compiler flag for that, so you could make it reject them if needed.

Yeah, beyond just pure technical ability to validate email address against rules, it's a weird one on so many levels:

theguardian.com/technology/2017/ap...

Can see pros and cons which ever way you go, tho having a dedicated library does help with faster updates over built in functions that might take years to release next version.

code of conduct - report abuse