isemail icon indicating copy to clipboard operation
isemail copied to clipboard

Allow punycode emails

Open fraserredmond opened this issue 8 years ago • 1 comments

An example from the comments on https://isemail.info

почта@домен.рф turns to [email protected]

Both of those emails fail. Seems like it's the xn-- and @- that cause it to fail. As a workaround I'm replacing them to "xn" and "@" before passing to is_email.

fraserredmond avatar Feb 25 '17 18:02 fraserredmond

You should change the title, as this example E-Mail also needs SMTPUTF8 compatibility, punycode only covers the domain-part of an email. So you can't puny encode the local-part...

Lockhead avatar Mar 14 '17 08:03 Lockhead