6 ms·
Alright, guess I'll be using email verification
by robertAngst 8y ago
Alright, guess I'll be using email verification
- lubujackson 8y agoCool, I have a bulletproof regex for that
- colejohnson66 8y agoMail::RFC822::Address? http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html
- deleted 8y ago[deleted]
- thecatspaw 8y ago.+\@.+ ... I hope
- wongarsu 8y agoAs long as you don't try to validate the email address I entered. The list of gotchas for email address parsing is impressive too. (e.g. "Cool Address"@example.store is a valid email)
- AnaniasAnanas 8y agoThese might be valid but nobody uses them and nobody will complain if you do not support them.
- deleted 8y ago[deleted]
- duskwuff 8y agoNot sure why this is getting downvoted. It's a valid point. There is a gap between "technically valid email addresses" and "email addresses that reasonable people use".
- deleted 8y ago[deleted]
- scbrg 8y agoNot that I downvoted, but the attitude annoys me. As a developer you have two options: 1) Do nothing and support all valid addresses (that your mail system can handle) 2) Spend development time to make your system not support all valid addresses. Why do you spend development effort to make your software worse?
- jcranmer 8y ago3) Realize that undervalidation of input can create opportunities to introduce backdoors into your system. 4) Realize that the added benefit of supporting weird formats are not worth the time to verify that it actually works. As someone who works on an email client, I can absolutely tell you that using IP address literals and quoted localparts are more trouble than its worth. Chances are, the libraries you use can't handle them anyways. And if you don't try to support quoted localparts, than normalization is a lot easier. (Although I was once locked out of a system because I signed up with an email address that used capitals and the login form changed to lowercase it without changing the database storage, which meant no form I could spell it would cause it to match).
- wongarsu 8y agoThe extreme cases are very rare, but even resonable addresses are rejected regularly. I have had various email addresses of me rejected because - of an unusual tld (whatever@somewhere.tech) - it was an email of a subdomain (whatever@some.where.com) - it had a two letter username (me@somewhere.com)
- darpa_escapee 8y agoIt's very rare that you get to confront the bane of your online existence, but here we both are.
- Tor3 8y agoBut, you know, I have seen one or two such email addresses. So somebody do use them.
- EADGBE 8y agodoes
- deleted 8y ago[deleted]
- PeterisP 8y agoYou should validate any email addresses, just keep in mind that proper validation requires you to attempt to send an email to it and check if the user received it.
- AnaniasAnanas 8y agoAs long as you do not limit the email to certain popular providers then it is a good solution.