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.

Write a review

Note: HTML is not translated!
    Bad           Good
Captcha

PHP Email Validation

  • Product Code: MOD211212092531
  • Availability: In Stock
  • Viewed: 7571
  • Sold By: PHP Studio
  • Seller Rating:
  • Seller Reviews: (0)
  • $19.95

  • Ex Tax: $19.95

Available Options


Related Products

PHP Login and User Management

PHP Login and User Management

PHP Login and User Management is an User Registration & Login and User Management System With Admin ..

$29.95 Ex Tax: $29.95

DNS Web Filter - Block Websites at Home, Work or School

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 Ex Tax: $49.95

Save
50%

HTML5 JavaScript Events Calendar Control

HTML5 JavaScript Events Calendar Control

HTML5 JavaScript Events Calendar Control is also an Events Schedule and Event Calendar. The HTML5 ..

$49.95 $99.95 Ex Tax: $49.95

Save
50%

PHP Booking and Appointment Scheduler

PHP Booking and Appointment Scheduler

PHP Appointment Scheduler is an online appointment scheduling software to boost sales and manage b..

$49.95 $99.95 Ex Tax: $49.95

Save
20%

PHP Web Page Password Protect

PHP Web Page Password Protect

Protect web page with a simple password, Password protect PHP Script. The best and easiest way to l..

$7.95 $9.95 Ex Tax: $7.95

Save
25%

HTML Invoice with Fillable Forms

HTML Invoice with Fillable Forms

HTML Invoice with Fillable Forms HTML Invoice with Fillable Forms is a minimal clean unique, modern..

$29.95 $39.95 Ex Tax: $29.95

Save
20%

PHP Folder Watcher

PHP Folder Watcher

PHP Folder Watcher is a PHP Script to monitor folders recursively, it's also support xcopy functio..

$39.95 $49.95 Ex Tax: $39.95

Save
25%

PHP QR Code Generator

PHP QR Code Generator

QR Code is type of Barcode that you use on your website. This type of barcode you can read by mobi..

$29.95 $39.95 Ex Tax: $29.95

PDF Viewer for WordPress & JavaScript

PDF Viewer for WordPress & JavaScript

PDF Viewer Plugin for WordPress & JavaScript PDF Viewer Plugin for WordPress & JavaScript is a resp..

$39.00 Ex Tax: $39.00

BizSoft Invoice for small businesses

BizSoft Invoice for small businesses

BizSoft Invoice -- Online invoicing software for small businesses BizSoft Invoice is an online invo..

$49.95 Ex Tax: $49.95

JQuery Html5 Video Player

JQuery Html5 Video Player

JQuery Html5 Video Player is a fantastic HTML5 video player based on jQuery JavaScript Library. Th..

$29.95 Ex Tax: $29.95

Save
20%

HTML5 Excel (Best JavaScript Data Grids and Spreadsheets)

HTML5 Excel (Best JavaScript Data Grids and Spreadsheets)

HTML5 Excel is an Online Excel Application which written in JavaScript completely. HTML5 Excel is ..

$79.95 $99.95 Ex Tax: $79.95

Save
33%

PHP Web File Manager

PHP Web File Manager

PHP Web File Manager is a best and useful file manager for web, written in JavaScript using jQuery..

$39.95 $59.95 Ex Tax: $39.95

URL Shortener Without Database PHP Script

URL Shortener Without Database PHP Script

URL Shortener Without Database PHP Script URL Shortener is a PHP script which create a shortened ..

$29.95 Ex Tax: $29.95

Tags: check checker, check email, email address, email verification, filter email, php email validation

You Recently Viewed

PDF Stamper SDK

PDF Stamper SDK

Welcome to the PDF Stamper SDK. This SDK allows you to stamp barcodes, hyperlinks, images, lines a..

$199.00 Ex Tax: $199.00

PDF Virtual Printer SDK Based on Postscript Printer Driver for Developer Royalty Free

PDF Virtual Printer SDK Based on Postscript Printer Driver for Developer Royalty Free

PDF Virtual Printer SDK Based on Postscript Printer Driver for Windows Developers Royalty Free PDF ..

$1,500.00 Ex Tax: $1,500.00

Photo Slideshow and Thumbnail Viewer JavaScript Source Code

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 Ex Tax: $29.95

PHP FileManager

PHP FileManager

Digital Online File Manager is a Web Based File Manager which written in PHP. Manage Your Files Ef..

$29.95 Ex Tax: $29.95