SyntaxFix
Write A Post
Hire A Developer
Questions
I think you might be better off using PHP's inbuilt filters - in this particular case:
It can return a true or false when supplied with the FILTER_VALIDATE_EMAIL param.
FILTER_VALIDATE_EMAIL