This is a PHP class that attempts to validate a given e-mail address at three levels: matching the address against a RFC compliant regular expression, verifing 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||Internet Communications Email Email Clients (MUA) Software Development Libraries php classes|
|Operating Systems||OS Independent|
Release Notes: This version avoids using POSIX regular expression functions, which were deprecated since PHP 5.3.
Release Notes: This version suppresses warnings that could arise from broken SMTP server connections.
No changes have been submitted for this release.
Release Notes: The class now returns undetermined email address validity if the SMTP server returns 4XX error codes for the RCPT command, as that may mean the server is using a grey list and so the tested address may not be really invalid as the class was stating previously.
Release Notes: The class now uses the Perl-compatible regular expression functions to accelerate the validation of many email addresses in the same script execution.