Projects / PHP Email address validation component

PHP Email address validation component

This is a PHP class that attempts to validate a given e-mail address at four levels: matching the address against a RFC compliant regular expression; checking whitelists and blacklists of domains with typing mistakes, disposable email addresses, and temporary and fake domains; verifying the existence of the destination SMTP server by verifying the respective DNS MX record; and connecting to that server to see if the given address is accepted as a valid recipient. The class also features a debugging output option that lets you see the remote SMTP server connection and data exchange dialog to see the real cause why an apparently valid address may not be accepting messages.

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  29 Apr 2014 13:15

    Release Notes: This release fixes the code for invalid email users with banned words.

    •  31 Mar 2014 11:27

      Release Notes: This release adds support for determining if an email domain has a typing mistake and suggesting the correct domain name. It adds support for returning a validation status code to let applications understand why an email address was considered invalid or undetermined. It adds support for considering invalid disposable email addresses, as well as addresses under temporary or fake domains.

      •  04 Feb 2014 07:50

        Release Notes: This release added a function to pre-validate an address by checking against domain, user, and servers white and black lists.

        •  04 Sep 2009 07:15

          Release Notes: This version avoids using POSIX regular expression functions, which were deprecated since PHP 5.3.

          •  05 Jan 2009 07:57

            Release Notes: This version suppresses warnings that could arise from broken SMTP server connections.

            Recent comments

            31 Oct 2007 18:19 mlemos

            Re: still active?


            > i noticed this project did not get

            > updated since 2005. is it still being

            > developed? abandoned? are there up to

            > date alternatives available?

            No, it is just there have not been any more features to add or bugs to fix because the class does practically all it is needed.

            31 Oct 2007 17:57 jeroenvg

            still active?
            i noticed this project did not get updated since 2005. is it still being developed? abandoned? are there up to date alternatives available?

            06 Dec 2005 11:06 mlemos

            Re: False negatives with this tool


            > Not sure why, but I'm getting false

            > negatives for all emails at a particular

            > domain. Does the mail server at a given

            > location have to be running sendmail for

            > this class to work? Maybe Windows

            > mailservers dont work? I dont know what

            > platform is running the mailserver

            > giving the false negatives. Can a

            > sysadmin do something to hide an email

            > server from the communication that this

            > class utilizes?

            The class just emulates the operation of a normal mail server.

            Many mail servers are using grey listing now. The class was updated some time ago to consider of unknown validity the addresses served by servers that employ grey listing. I wonder if you are using an updated version of the class. If you are, can you tell me what e-mail addresses you are getting false positives?

            06 Dec 2005 10:27 jganders

            False negatives with this tool
            Not sure why, but I'm getting false negatives for all emails at a particular domain. Does the mail server at a given location have to be running sendmail for this class to work? Maybe Windows mailservers dont work? I dont know what platform is running the mailserver giving the false negatives. Can a sysadmin do something to hide an email server from the communication that this class utilizes?

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.