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
-
There's basically no point of that anymore. Any smarter spam will have an email that will pass such a test and if this is supposed to check if the domain exists, why not just grep for source, or fetch whois? I mean... it's better than limit yourself with regex where not necessary.
-
@KeyWeeUsr True, but that was just meant as an example. But the point is that some big websites still use that kind of mechanism to check for common domains..
-
Regexing for valid email addresses is..... Complicated.
Even more so with new gtlds.
Look it up if you don't believe me, it's terrifying. -
@slowinversesqrt complicated and even more breakable without a proper test with each weird example it has to support, and so on.
That's why I'm rather for fetching info from/about domain and forcing user to confirm the mail. Add a little bit of working captcha and idiots + bots should be filtered. -
Currently at my job we let any text go with little validation. If we ever send an email we just have a batch job run to pick up any bounced emails and sends out a letter to their current physical address instead.
-
Sladix668yThere are some tools to check if an email address exists or not such as http://email-checker.net/
-
flag020318yNot all setups support this but you can check if email exists in real-time with a SMTP connection. You don't necessarily need to send and wait for a bounce. Some setups accept all incoming traffic though. My solution would be to send a email if server accepts the mail. As for email validation, you can have virtually anything (with a fee restrictions) before the @ symbol and it's case sensitive. Just check for @ and a '.' (local domains don't necessarily need these though)
-
Adrian140406yYou can also use www.zerobounce.net for email verification because they're more accurate. The system works by reducing and eliminating invalid, abuse, complaint, inactive, and spam-trap email address. You can use API, real-time validation.
-
For email verification, you can also use https://thechecker.co as this is the most cost-effective email verification and email list cleaning service in the market. It makes it easy and affordable for businesses to protect their email sending reputation and avoid inbox delivery issues that lead to a loss of sales opportunities.
-
MaxMcLean186dThis is Old Post. Now You can easily use email checker like mailtester ninja to clean the list of emails and more.
Related Rants
To all the web developers out there that use email validation, stop using a check for common domain names! If I try to sign up with my email address (something@coded-websites.be) it won't work! So stop doing that and use a RegEx please! Who has had this problem too?
undefined
regex
struggle
validation
email