729
you are viewing a single comment's thread
view the rest of the comments
[-] tyler@programming.dev 16 points 13 hours ago

You shouldn’t be validating emails yourself anyway. Use a library or check for only the @ and then send an email confirmation.

[-] who@feddit.org 3 points 4 hours ago* (last edited 4 hours ago)

Use a library

Please, no. If someone wrote email address "validation" complex enough to warrant a library, then their code is almost certainly wrong.

or check for only the @ and then send an email confirmation.

Yes. Do that.

If your boss demands a more detailed check at input time, then make it display warnings, not errors, and continue to the confirmation sending step if the user chooses to ignore the warning.

[-] zurohki@aussie.zone 9 points 11 hours ago

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.

[-] psud@aussie.zone 1 points 1 hour ago

I seem to have annoyed an admin of an instance enough for them to subscribe my signup email to hundreds of dating profiles (presumably using a service that offers to harass someone for you)

Many of them aren't good at validating email

One in ten has one email arrive, asking me to click a link to confirm

9 in ten have 5 emails before I notice them:

  • Please click a link to confirm
  • You received a wink
  • You received a wink
  • You received 3 chat requests
  • You received a link

So it's important to not send emails beyond the validate one to unvalidated addresses, to perfect your service annoying or harassing this parties

Also, use a disposable address for signing up to Lemmy

[-] TomasEkeli@programming.dev 2 points 11 hours ago

This is the way.

this post was submitted on 18 Aug 2025
729 points (99.1% liked)

Programmer Humor

25802 readers
3110 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS