PHP Email Validation - SMTP, MX Record and Regular Expression
PHP Email Verification is a simple PHP function that can be easily used to
verify email addresses and ensure that they are valid and actually exist on the
mail server.
In addition to checking the syntax, PHP Email Verification is also use MX-Records
and Simple Mail Transfer Protocol (SMTP) to check the actual existence of an
email address.
We sometimes need to verify the validation of a given email address. The
simplest method we have is to send a verification email to the given email
address and ask the user to click the link in that email. But in addition, we
have three other methods, namely SMTP email verification, MX record checking,
and regular expressions.
This php email validation script which validates email address using SMTP
validation, mx record check and regular expression.
Regular Expression Check:
This is simple type of email validation and it's done in client side. This
method doesn't check whether the email actually exist or not, but it simply
checks given email is in standard form or not.
MX Record Check:
Usually a mail server is configured to process emails for a domain. MX Record
holds ip address of that mail server, just like a pointer. So by checking MX
Records we can make sure whether this domain can process emails or not.
This will avoid providing emails with fault domain names, like user@gmai.lcom
etc. But still we aren't sure that the given email exist or not as we check only
domain capabilities.
SMTP Email Validation:
SMTP Email Validation done by communicating mail server through SMTP commands
such as HELO, RCPT To etc. You can learn more about SMTP commands here. By
checking reply code from mail server we can make sure whether given email exist
or not.
We follow below order in validating email:
1. Sender: HELLO! I'm the sending mail server.
2. Receiver: Hello, I'm the receiving mail server. Go ahead!
3. Sender: Mail from: Somebody
4. Receiver: OK, that's good.
5. Sender: Mail to: Somebody else
6. Receiver: Okay, that's fine
For each command listed above, we receive a status code from reply server. In
step 6, if we receive reply code as 250, then we can assume that email was
accepted and it is exist. Even if the reply code is 450 / 451, we can still
think that email exist, because these codes were sent when there is a temporary
error in MTA or email gray listed.
PHP Email Verification is a simple PHP function, after you buy it, you can copy
and insert this function into your PHP script and get it work easily. If you
have any question for this PHP script, please feel free to let us know, we are
glad to assist you asap.
PHP Email Validation
- Product Code: MOD211212092531
- Availability: In Stock
- Viewed: 10377
- Sold By: PHP Studio
- Seller Reviews: (0)
-
$19.95
Available Options
Related Products
Save17%
PHP Script Batch Watermark
PHP Watermark Script – batch to add watermarks to all of your image files in a folder and sub-fold..
$24.95 $29.95
HTML to PDF Conversion API
HTML to PDF Conversion API is a professional solution that lets you create PDF from web pages and ..
$59.95
PHP Email Extractor
PHP Email Extractor - the Best tool for extracting any email address. Extract email addresses from..
$19.95
PHP Smart Currency Library
PHP Smart Currency Library Smart Currency PHP Library utilises the Smart Caching and Certain API ..
$19.95
Web Crawler and Scraper for Emails, Links, Phone Numbers and Image URLs, PHP Source Code
Web Crawler and Scraper for Emails, Links, Phone Numbers and Image URLs. Web Crawler and Scraper ..
$29.95
Photo Slideshow and Thumbnail Viewer JavaScript Source Code
Photo Slideshow JS is a Photo Slideshow and Thumbnail Viewer JavaScript Source Code, it is an image,..
$29.95
Excel to HTML Table Converter With Search & Pagination using PHP, Excel To PDF
Excel to HTML Table Converter is a great PHP script that will help you to importing Excel data int..
$49.95
Image Slicer PHP Script
Image Slicer PHP Script can be used to slice large images in several parts to make it display fast..
$29.95
User Management System with PHP, MySQL and SQLite
User Management System with PHP, MySQL and SQLite PHP User Management System is a powerful PHP scri..
$29.95
DNS Web Filter - Block Websites at Home, Work or School
DNS Filter is a Powerful Internet Filtering Software and Solution. DNS Filter software is an Inter..
$49.95
PDF Page Counter for All Sub-folders by PHP Script
PDF Page Counter can be used to count the number of pages of all PDFs in current directory and all..
$59.95
Web Screenshot Capture Command Line with .NET and PHP Integration
Web Screenshot Capture Command Line allows you to take screenshots of web pages and save them as f..
$79.95
Email RSS Feeds as PDF Newspaper
Convert RSS Feeds to PDF Newspaper with Email Subscription RSS Feeds To PDF Maker is a PHP Script..
$299.00
jQuery Multiple File Uploader
jQuery Multiple File Uploader is a new and modern multiple file uploader, offering a wide variety of..
$9.95
Tags: check checker, check email, email address, email verification, filter email, php email validation
You Recently Viewed
Photo Editor
VeryUtils Photo Editor software is a digital photo editing tool that improves your photos, add new..
$39.95
Video Editor Software
VeryUtils Video Editor is the Best Video Editor software, it's an alternative to Windows Movie Mak..
$29.95
JavaScript RichText Editor
This JavaScript RichText Editor Control is based on pure JavaScript, with no dependencies. JavaScr..
$49.95