From http://www.webtoolkit.info/php-validate-email.html#more-190