TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What is the norm for email validation?

7 pointsby taylorcooneyalmost 8 years ago
For email validation, what is the norm for mobile apps? Are people making a service call to third-party like Mailgun, or checking on the client side?<p>I&#x27;m trying to come up with the options on the service side and client side, and what options exist in the Rails environment already. I feel like our CTO is more inclined to go with what other tech companies are using on the mobile apps.

6 comments

aonomaalmost 8 years ago
Related (was on Hacker News)<p>&quot;On the Futility of Email Regex Validation&quot;<p><a href="https:&#x2F;&#x2F;jackfoxy.github.io&#x2F;FsRegEx&#x2F;emailregex.html" rel="nofollow">https:&#x2F;&#x2F;jackfoxy.github.io&#x2F;FsRegEx&#x2F;emailregex.html</a>
评论 #14548109 未加载
bskizzlealmost 8 years ago
You can, and should, knock out the really obvious stuff with regex validation but you&#x27;re smart to be concerned about one thing that most people miss in this conversation.<p><i></i><i>A confirmation email doesn&#x27;t solve the problem if the user mistyped the address to begin with.</i><i></i> You&#x27;re right, they wait for a confirmation email that never comes.<p>Using a third party service like BriteVerify&#x27;s rest api is the only way to get an actual verification that the inbox exists.
assafmoalmost 8 years ago
Send the user a verification mail.
评论 #14552983 未加载
smt88almost 8 years ago
What about passwordless, email-based login? It&#x27;s easier than username&#x2F;password login, it verifies the email address, and it provides the same level of security (assuming password can be reset via emailed link).
评论 #14554264 未加载
评论 #14548817 未加载
评论 #14547898 未加载
Bashmaistoraalmost 8 years ago
I use JS validation library + Mailcheck.js on the front end. The regex checks for format and mailcheck validates second and top level domains. Coupled with a verification mail this is good enough for me.
stephenralmost 8 years ago
If you&#x27;re only worried about the domain aspect, and want a super simple approach just check if you can resolve the hostname.
评论 #14554394 未加载