DEV Community

Discussion on: How to validate an email address in JavaScript

Collapse
 
moopet profile image
Ben Sinclair

If you're using it as an optional field, why not just have a "send test notification" action available?

If it needs to be valid for any other reason (like proving someone's identity) then it's probably a forlorn hope anyway.

Collapse
 
phlash profile image
Phil Ashby

This - close the loop at the next layer up if possible, typically seen in registration systems that send a confirmation link.