Overview:
Email verification is a PHP class that can be easily used to verify an email address and make sure it is valid and does exist on the mail server.
In addition to checking the syntax, the actual existence of an email address using MX-Records and the Simple Mail Transfer Protocol (SMTP), and detecting whether or not the requested mailbox is configured to catch all incoming mail traffic, is disposable mail or role-based email.
Features:
- Check email syntax
- Check MX records
- Check SMTP mailbox actual existence
- Detect disposable mail
- Detect role-based mail
Requirements:
- PHP 5.x
- PHP 7.x
- Port for checking SMTP is opened, e.g.: 25, 465, 587
Instructions:-
Script Structure;
When you open up my script folder, you’ll see the following files and directories:
- inc/
- disposable-domains.php
- email-verification.class.php
- role-based.php
- index.php
- bulk.php
- bulk-ajax.php
- cli.php
- README.docx
The file & folders;
- inc: Contains the common files, where all the logic live here.
- index.php: A simple form with Bootstrap style for verifying email exist or not.
- cli.php: A simple file allow you verify email in command line directly.
How to install:
Add this class to your file:
require_once './inc/email-verification.class.php';
That’s all, now you are ready to use that class!
Reviews
There are no reviews yet.