This code proves whether an address is well-formed, whether the domain exists, whether a mail server is specified in the DNS for this domain, and whether or not the mail server can successfully be connected to.
However, despite good intentions, it doesn't prove whether the email address in fact exists on the mail server.
If you connect to a mail server for domainx.com (just an example) -- (you can do this manually via "telnet mail-server-for-domainx.com smtp" from a command prompt), and ask it to send or receive mail for:
fake-address@domainx.com
It will still respond with something like:
250 OK - Recipient <fake-address@domainx.com>
Even if the mailbox does not exist on the server.
On some mail servers, you can use the VRFY command to check the validity of an email address -- however the vast majority of servers have disabled this command for security reasons -- so you will either receive an error, or receive an "OK" response no matter what you type in.
In sum, it is ususally not possible to check the validity of an email address, except by attempting to send mail to the address.
S.