15/21
12/21
are things that are considered out of current spec really “valid” though?
And is it really valid if my email provider doesn’t accept it? If it’s not universally accepted or standard, then it doesn’t matter if it’s technically valid.
I scored 18/21 on https://e-mail.wtf/ and all I got was this lousy text to share on social media.
Let us recite the email validator’s oath:
If it has something before the
, something between the
and the
.
, and something after the.
, it’s valid enough.I lost it at the fork bomb. I mean I hit valid because there was no way it was on the and not valid, but there’s no way i’d have expected that. after that I just kept guessing the most stupid answer and did pretty well
I scored 13/21 on https://e-mail.wtf/ and all I got was this lousy text to share on social media.
I gave up when I got like 5 wrong. I’ve ran mail servers for decades, most of the invalid “valids” would get rejected by any mailservers I’ve administered.
I scored 16/21 on https://e-mail.wtf/ and all I got was this lousy text to share on social media.
Damn, and here I thought I had this locked down because I was salty that so many places struggle with
+
in the email addy. But my god, there’s comments?Average :/
Me too.
I scored 11/21 on https://e-mail.wtf/ and all I got was this lousy text to share on social media.
I scored 16/21 on https://e-mail.wtf/ and all I got was this lousy text to share on social media.
I don’t validate emails, I test them.
That’s your email? OK, what did we send it? if we couldn’t send to it or the user can’t read it there’s no reason to accept it.
OK, maybe I do some light validation first, but I don’t trust the email address just because it’s email-address-shaped.
What kind of “light validation”? I’m guessing a
.*@.*
regex match.Almost correct. ^.+@.+$
Too hard to validate properly to be worth it. Even if it is technically valid that’s insufficient. It must also work, and the easiest way to test that is to use it and verify that the user got what we sent.
I see you accept lemmy handles.
if i can email them and the user gets it - fine by me
matches
What if we 👉@👈 …? 🤭
Now i just need a registrar that allows emoji…
Self-host it.
People may find that weird, however.
I don’t care who the IRS sends, I am not validating emails with spaces on them.
You shouldn’t be validating emails yourself anyway. Use a library or check for only the
and then send an email confirmation.
Even if it’s a completely valid address and the domain exists, they still might’ve fat fingered the username part. Going to extreme lengths to validate email addresses is pointless, you still have to send an email to it anyway.
This is the way.
I scored 12/21 on https://e-mail.wtf/ and all I got was this lousy text to share on social media.
17/21. Would have been 18 but the first example of spaces screwed me.