3 ms·
Unfortunately, email format validation (similar to HTML email) is somewhat of a black art: http://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-emai
by pmarreck 11y ago
Unfortunately, email format validation (similar to HTML email) is somewhat of a black art:
http://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.aspx/ http://haacked.com/archive/2007/08/21/i-knew-how-to-validate...
http://girders.org/blog/2013/01/31/dont-rfc-validate-email-addresses/ http://girders.org/blog/2013/01/31/dont-rfc-validate-email-a...
Of course one could always just go with RFC822 and this little regex:
http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html
- garethadams 11y agoThe parent wasn't talking about the individual validation of email addresses (although I guess that may be a part of the answer), but instead about checking the presence of a recipient, subject, sender etc as part of static typing.