I also reached out to them on Twitter but they directed me to this form. I followed up with them on Twitter with what happened in this screenshot but they are now ignoring me.

325 points

When you insist on implementing your own email address validation…

permalink
report
reply
169 points

I have my own domain that uses a specific 2-letter ccTLD - it’s a short domain variation of my surname (think “goo.gl” for Google). I’ve been using it for years, for my email.

Over those years, I have discovered an astonishing number of fuckheaded organisations whose systems insist I should have an email address with a “traditional” TLD at the end.

permalink
report
parent
reply
86 points

A few years back I bought a .family domain for my wife and I to have emails at ourlastname.family That lasted a week because almost every online service wouldn’t accept it. Now we have a .org

permalink
report
parent
reply
44 points

Doesn’t surprise me one bit. I’ve noticed that a lot of websites will only accept .com and a few will only accept email addresses from popular providers (Gmail, Hotmail, outlook, etc.)

My guess is that it’s trying to reduce spam and fake account generation.

permalink
report
parent
reply
2 points

I went with .io specifically for this. It doesn’t look special or anything, it’s just cheaper than .org and accepted anywhere I’ve tried, so far.

permalink
report
parent
reply
19 points

I hate it.

permalink
report
parent
reply
16 points
*

My first email address was @k.ro (a free email provider many many years ago) and many websites thought a valid second-level domain name cannot be just one letter

permalink
report
parent
reply
7 points

I’d love to know where they got the idea that the spec doesn’t allow that…

permalink
report
parent
reply
15 points

Same. There are a lot of sites that just outright refuse to accept my email address that I’ve had for years, because it’s not a .com TLD.

permalink
report
parent
reply
3 points

CVS and E*Trade both refused to accept my fairly standard user@mydomain.info address during initial registration, but had no issue changing to that address once the account was created. It would be nice if their internal teams communicated a bit better.

permalink
report
parent
reply
47 points

The only useful email validation is “can I get an MX from that” and “does it understand what I’m saying in that SMTP”. Anything else is someone that have too much free time.

permalink
report
parent
reply

It’s easier to Google “email regex [language]” and copy the first result from stack overflow.

permalink
report
parent
reply
42 points

Definitely a timesaver. Much faster to get incorrect email validation that way then to try building it yourself.

permalink
report
parent
reply
16 points

That probably lead to this exchange.

Stack Overflow is useful, but…it needs more than a little parsing for useful answers.

permalink
report
parent
reply
14 points

I know (hope) you’re being facetious, because the objectively best way to do email validation is to send a fuckin email to the provided address.

permalink
report
parent
reply
3 points

To be valid, the email just has to match [anything@anything]. ,🙃@localhost can be perfect legal if localhost supports utf8 in usernames.

permalink
report
parent
reply
2 points

Or implement a validator from a known good library.

permalink
report
parent
reply
32 points

I’ve encountered this because my domain has a hyphen in it. Very irritating.

permalink
report
parent
reply
3 points

@spider-man.net?

permalink
report
parent
reply
21 points

I’m not aware of any correct email validations. I’m still looking for something accepting a space in the localpart.

Also a surprising number of sites mess with the casing of the localpart. Don’t do that - many mailservers do accept arbitrary case, but not all. MyName@example.com and myname@example.com are two different mail addresses, which may point to the same mailbox if you are lucky.

permalink
report
parent
reply
25 points

The only correct regex for email is: .+@.+

So long as the address has a local part, the at sign, and a hostname, it’s a valid email address.

Whether it goes somewhere is the tricky part.

permalink
report
parent
reply
24 points
*

Sorry, this is not a correct regex for an email address.

Sending using mail on a local unix system? You only need the local part.

STOP VALIDATING NAMES AND EMAIL ADDRESSES. Send a verification email. Full stop. Don’t do anything else. You really want to do this anyway, because it’s a defense against bots.

permalink
report
parent
reply
16 points

Here’s my address: @@@@@

permalink
report
parent
reply
4 points

You should be able to double quote the local part and use the space. "like this"@email.net. Good luck getting that through a validator though.

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
9 points

When you insist on implementing your own email address validation regex string…

permalink
report
parent
reply
244 points

but they are now ignoring me.

Hmm. Did you try giving them your email address?

permalink
report
reply
72 points
*

Yes, now my twitter dms are stuck in an infinite loop

permalink
report
parent
reply
37 points

Gimme your email address and I’ll see what I can do

permalink
report
parent
reply
7 points
*

And the password is >!*****************!<

permalink
report
parent
reply
175 points

Somebody made a shitty regex.

permalink
report
reply
71 points

Probably, from what I can see the address in question isn’t really that exotic. but an email regex that validates 100% correctly is near impossible. And then you still don’t know if the email address actually exists.

I’d just take the user at their word and send an email with an activation link to the address that was supplied. If the address is invalid, the mail won’t get delivered. No harm done.

permalink
report
parent
reply
24 points

Actually, one of our customers found out the hard way that there is harm in sending emails to invalid addresses. Too many kickbacks and cloud services think you’re a bot. Prevented the customer from being able to send emails for 24 hours.

This is the result of them “requiring” an email for customers but entering a fake one if they didn’t want to provide their email, and then trying to send out an email to everyone.

Our software has an option to disable that requirement but they didn’t want to use it because they wanted their staff to remember to ask for an email address. It was not a great setup but they only had themselves to blame.

permalink
report
parent
reply
18 points

My guess is that would also occur with valid but non-existing e-mail addresses no? The regex would not be a remedy there anyway.

Of course you should only use the supplied e-mail address for things like mass mailings once it has been verified (i.e. the activation link from within the mail was clicked)

permalink
report
parent
reply
19 points

The best of validation is just to confirm that the email contains a @ and a . and if it does send it an email with a confirmation link.

permalink
report
parent
reply
31 points

TLDs are valid in emails, as are IP V6 addresses, so checking for a . is technically not correct. For example a@b and a@[IPv6:2001:db8::1] are both valid email addresses.

permalink
report
parent
reply
18 points
*

Email standard sucks anyway. By the official standard, User@email.com and user@email.com should be treated as separate users…

permalink
report
parent
reply
30 points

Personally I don’t think that sucks or is even wrong. Case-independent text processing is more cumbersome. ‘U’ and ‘u’ are two different symbols. And you have to make such rules for every language a part of your processing logic.

If people can take case-dependence for passwords (or official letters and their school papers), then it’s also fine for email addresses.

The actual problem is cultural, coming from DOS and Windows where many things are case-independent. It’s an acquired taste.

permalink
report
parent
reply
6 points

Yeah, no

Sometimes standards are wrong lol

permalink
report
parent
reply
Deleted by creator
permalink
report
parent
reply
1 point
.+@.+\..+
permalink
report
parent
reply
5 points

We’re gonna need a bigger regex

https://pdw.ex-parrot.com/Mail-RFC822-Address.html

permalink
report
parent
reply
3 points

TLDs could theoretically have MX records too! Email addresses as specified also support IPv6 addresses! The regex would need to be .+@.+ and at this point it’s probably easier to just send an email.

permalink
report
parent
reply
15 points

That’s what it looks like to me too

I could probably write a RegEx for email format validation that’s accurate, but why would I when there are ones already written and readily available that covers all possible legit variations on the standard? I never understood why people insist on writing their own (crap) RegEx for something with as many possible variations they can miss like email…

And that one isn’t even a weird edge case! It’s a domain with a sub domain, if they can’t even cover that case then it’s an extra shitty RegEx

permalink
report
parent
reply
6 points

Let’s see your regex pattern that covers every possible valid email address and rejects all invalid then. It’s not remotely as easy as you’re making it out to be.

Not saying this isn’t a shitty pattern, but you can’t make a claim like that.

permalink
report
parent
reply
3 points

What claim, that I probably could? I didn’t say anything at all about it being easy, it would be a pain in the ass and involve a lot of checking the RFC, but I could probably make one that accurately represents the spec if I wanted to take the time, and even then I’m not exactly confident I would hit every edge case.

But why would I go to that hassle when there are well designed and vetted ones available?

I believe you missed the point I was making

permalink
report
parent
reply
2 points

It doesn’t need to be perfect, it just needs to prevent common mistakes and let valid emails through.

permalink
report
parent
reply
6 points
*

And that one isn’t even a weird edge case! It’s a domain with a sub domain, if they can’t even cover that case then it’s an extra shitty RegEx

Like my work email which is “my.name@umbrellacompany.company.com

permalink
report
parent
reply
120 points

Smells like bad regex

permalink
report
reply
41 points

Exactly. After the @ they should just confirm there’s at least one period. The rest is pretty much up in the air.

permalink
report
parent
reply
32 points

Which would still be technically wrong. There does not need to be a dot.

permalink
report
parent
reply

Even that would be technically incorrect. I believe you could put an A record on a TLD if you wanted. In theory, my email could be me@example.

Another hole to poke in the single dot regex: I could put in fake@com. with a dot trailing after the TLD, which would satisfy “dot after @” but is not an address to my knowledge.

permalink
report
parent
reply
12 points

And this sort of thing is exactly how you end up with bad regex that invalidates valid emails.

The point isn’t to invalidate all bad emails. It’s to sort out most of them.

permalink
report
parent
reply
5 points

Something something http://[2607:f8b0:4004:c09::8a] and http://3627734062 are valid url’s without a dot, and are probably valid for emails too, but I’m too lazy to actually verify that.

permalink
report
parent
reply
13 points

I’ve had issues with this in using govt emails too. DOD accounts all have multiple dots based on branch and dept. It broke so many systems and emails never went through.

permalink
report
parent
reply
7 points

The easiest and most correct check: any character, then @, then any other character.

permalink
report
parent
reply
15 points
6 points

Beautiful

permalink
report
parent
reply
2 points

That regex makes me nauseous

permalink
report
parent
reply
6 points
Deleted by creator
permalink
report
parent
reply
113 points

The best way to validate an email address is to sent it an email validation link.

Anything outside of that is a waste of effort.

permalink
report
reply
70 points

That is 100% a chatbot using a regex email validator someone wrote as a meme that the chipotle dev copied from stack overflow without context.

permalink
report
parent
reply
18 points

As the owner of a .info domain, I know this pain all too well.

permalink
report
parent
reply
4 points

One of the reasons I’ve always avoided .info, nobody seems to believe it’s a real domain

permalink
report
parent
reply
12 points

To do that, it looks like I just need some final info from you first…

permalink
report
parent
reply

Mildly Infuriating

!mildlyinfuriating@lemmy.world

Create post

Home to all things “Mildly Infuriating” Not infuriating, not enraging. Mildly Infuriating. All posts should reflect that.

I want my day mildly ruined, not completely ruined. Please remember to refrain from reposting old content. If you post a post from reddit it is good practice to include a link and credit the OP. I’m not about stealing content!

It’s just good to get something in this website for casual viewing whilst refreshing original content is added overtime.


Rules:

1. Be Respectful

Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.


2. No Illegal Content

Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means: -No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)


3. No Spam

Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.


4. No Porn/Explicit

Content


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.


5. No Enciting Harassment,

Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.


6. NSFW should be behind NSFW tags.

-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.


7. Content should match the theme of this community.

-Content should be Mildly infuriating.

-At this time we permit content that is infuriating until an infuriating community is made available.


8. Reposting of Reddit content is permitted, try to credit the OC.

-Please consider crediting the OC when reposting content. A name of the user or a link to the original post is sufficient.


Also check out:

Partnered Communities:

1.Lemmy Review

2.Lemmy Be Wholesome

3.Lemmy Shitpost

4.No Stupid Questions

5.You Should Know

6.Credible Defense


Reach out to LillianVS for inclusion on the sidebar.

All communities included on the sidebar are to be made in compliance with the instance rules.

Community stats

  • 5.6K

    Monthly active users

  • 846

    Posts

  • 55K

    Comments