Download the PHP package payprocessing/smtp-validate-email without Composer
On this page you can find all versions of the php package payprocessing/smtp-validate-email. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download payprocessing/smtp-validate-email
More information about payprocessing/smtp-validate-email
Files in payprocessing/smtp-validate-email
Package smtp-validate-email
Short Description Perform email address verification via SMTP
License GPL-3.0+
Homepage https://github.com/zytzagoo/smtp-validate-email
Informations about the package smtp-validate-email
SMTP_Validate_Email
Perform email address validation/verification via SMTP.
The SMTPValidateEmail\Validator
class retrieves MX records for the email domain and then connects to the
domain's SMTP server to try figuring out if the address really exists.
Earlier versions (before 1.0) used the SMTP_Validate_Email
class name (and did not use namespaces and other now-common PHP features). Care has been taken to keep the old API and migrating old code should be painless. See 0.7 version.
Features
- Not actually sending the message, gracefully resetting the SMTP session when done
- Command-specific communication timeouts implemented per relevant RFCs
- Catch-all account detection
- Batch mode processing supported
- Logging/debugging support
- No external dependencies
- Covered with unit/functional tests
Installation
Install via composer:
composer require zytzagoo/smtp-validate-email --update-no-dev
Usage examples
Basic example
Multiple recipients and other details
Migrating to 1.0 from older versions
Earlier versions used the global SMTP_Validate_Email
classname.
You can keep using that name in your existing code and still switch to the newer (composer-powered) version by using aliasing/importing like this:
Require the composer package:
composer require zytzagoo/smtp-validate-email --update-no-dev
And then in your code:
Development & Contributions
See the package.json.
Running make
once you clone (or download) the repository gives you:
So, run make install
to get started. Afterwards you should be able to run the tests.
Tests are powered by phpunit
and a local smtp-sink
instance running on port 1025.
If smtp-sink
is unavailable, tests requiring it are marked as skipped.
Pull requests are welcome!
In order to get your pull-request merged, please follow these simple rules:
- all code submissions must pass cleanly (no errors) with
make test
- stick to existing code style (
phpcs
is used) - there should be no external dependencies
- if you want to add significant features/dependencies, file an issue about it first so we can discuss whether the addition makes sense for the project