4 ms·
Developers should not reinvent email validation every time. A simple and well-known library implemented for most popular languages would help. I say check that
by cabirum 5y ago
Developers should not reinvent email validation every time. A simple and well-known library implemented for most popular languages would help.
I say check that one "@" is found in a string, and it's not the first or last character, and there's no spaces, (done! Try sending it!). This is how humans understand email addresses, no need to write a fully rfc-compliant parser.
- sethammons 5y agoSpaces are allowed too :) "totally valid @ email"@localhost
- benibela 5y agoMy last name has spaces in it I asked the admin at my department to give me a lastname@university.. address. But he refused. He said the spaces might break too many things. Even when I mentioned that would be a great stress test for the mailing system