- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
You must log in or register to comment.
What about
"user@not_domain"
? It validates but isn’t valid - there’s no domain part, the@
is quotedThat’s not something you can determine using a regex.
“user@com” for example could be a perfectly working email.
The right way is to send a verification email in every case.