Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
They scan for know domain classifiers or profanity for some reason. According to the email spec, t@t is a valid email.
-
@molaram
Obv. My statement was just that whatever they are doing is superfluous, app specific use case. The email portion of the address specification is clear, anything else is fluff.
https://tools.ietf.org/html/... -
C0D4669025ysome devs will go to the extent of doing a MX lookup to verify the domain will accept emails.
for example:
my.ass
https://mxtoolbox.com/SuperTool.asp...
vs
devrant.com
https://mxtoolbox.com/SuperTool.asp... -
C0D4669025y@molaram i know, these guys have an api to do such lookups too through https://mojodns.com/ for small scale applications.
-
@SortOfTested well, the email spec also has to work for the intranet, hence t@t is valid. But in the common Internet, everything (?) works through domains, so it is valid to check those.
No need to allow 'a@b' if the dns of the service has no way to get the address of 'b' oO Or am I wrong here? I'm open to input :) -
In a word, yes.
0: you're conflating technologies. The standards define how the "common internet works," not the other way around
1: TLDs are themselves valid domain names (hence why your computer doesn't choke on localhost)
2: SMTP is an application layer protocol, as is DNS. Neither has contextual awareness of the other, email works fine on IP addresses, as does the internet. DNS is a convenience.
3: if your business logic has a rule that says only employees.example.com account holders can register, that's a separate validation rule from "is this even a valid email."
3.5: it's also a separate error message
4: your computer is a capable nameserver without any additional software or even being online
Bonus: what if I were to tell you that intranets aren't special in regards to protocols and standards. I mean, wouldn't it be cool if there were a way to connect a whole bunch of intranets together that didn't need a bunch of incompatible technologies? Whatever would we call that 😝
How is this not a valid address!
rant
email validation