I've searched this site for similar answers and I still can't make up my mind. Also I'm new to this site.
I'm in the process of developing a PHP script to allow users to register. After they register they are sent a email with a token to validate that they have access to that email saying it is valid and it will mark them as 'valid users' otherwise it will delete that entry after a set time. What I'm wondering is if a custom REGEX that I made (which works fairly good for the most part just needs tuning every now and then) or if filter_var
with FILTER_VALIDATE_EMAIL is better than my custom REGEX. I know that if you send too many emails that bounce back you might be marked as a spammer site and my client wouldn't like that too much.
Anything else that might help would be great help to me.