And the only thing, that can be repeated about that is, that you can't validate any mail address existence merely be a regular expression. That only assures the adress you pass in is valid against the pattern including letters, digits, an @ sign, again letters and digits and some more, eg dots, minus, a domain extension, so it merely checks the format of a mail address is right, there is no invalid char or missing component. sfhjksdhk@sdfjksdh.fun also passes the test, but surely this mail address is not used, even the domain sdfjksdh.fun doesn't exist.
There is no other way to validate an email address exists, than sending a mail to it with a verification link the user then has to click. Why else do all major communities ask that of you, if you register?
You'll not only technically verify the address is valid by sending a mail at it, which doesn't bounce off, you also let the owner of that mail address confirm the registration (or other actions), so a user can't register to impersonate someone just knowing a mail address, you'll have to have access to the mail address to activate the registered account, for example.
What you have to do is not only send any mail to the address, but a mail containing an individual confirmation link. If that links is clicked in the mail, you do not only know that mail address exists, but also the owner of the mail address wants to confirm it. Another common practice is not sending over a link, but a code and offering a page to enter that confirmation code. All these links or codes have to be unique and valid only one-time and for a limited time period, eg an hour or a day, depends on the need, because whatever script processes these link requests or entered confirmation codes will need to lookup the adress related to it, the account related to the address and accept the activation/confirmation.
For an example how it could be done:
Don't waste your time understanding the php or mysql, just understand the concept. In this case the confirmation link contains a hash code made up in the mysql database for the users record, so the link does not expire and if the user doesn't want to confirm his account registration, someone else getting hands on the link can do so. The other thing I'd not do is send over username and password in the same mail. All info needed is there to take over this account and impersonate someone, but the general process of sending out a confirmation mail and processing a verification is explained quite well.
Bye, Olaf.