When verifying an email address there are two basic things you want to do.
- validate the structure of the address
- confirm the domain can actually receive email (this is the important part)
Now validating the structure of the address can be done with a regex (view on ReFiddle)
Then confirming the domain is simple enough in php. You can just check the DNS record for a MX record
Then it all comes together below