PHP Classes

Disposable Temporary Email Validator: Determine if an email address is temporary

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog (1)    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 508 This week: 1All time: 5,778 This week: 560Up
Version License PHP version Categories
disposable-email 1.0MIT/X Consortium ...5Email, PHP 5, Validation
Description 

Author

This class can determine if an email is a temporary disposable address.

It takes an email address and parse it to extract the email address domain.

The class looks up a list of hundreds of domains know to be of services of temporary disposable email addresses.

Innovation Award
PHP Programming Innovation award nominee
August 2015
Number 4


Prize: One book of choice by Packt
Disposable email addresses are addresses created for use just once or a few times.

There are sites that can create disposable email addresses for people that need to register to access certain sites but they do not want to provide their real email addresses.

This causes problems to those sites because they will not be able to contact the users that register when they need to communicate important information.

This class can detect if an email address is of one of many known domains used for disposable email addresses, thus helping sites to reject registrations of users that use those disposable addresses.

Manuel Lemos
Picture of Suresh Kumar
Name: Suresh Kumar <contact>
Classes: 2 packages by
Country: India India
Age: ???
All time rank: 2764165 in India India
Week rank: 411 Up26 in India India Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php

// Disposable Email Address Validator


require_once('DisposableEmail.class.php');

$obj = new DisposableEmails();

$result = $obj->validate("dsk@zomg.info");

if(
$result){
    echo
"Alert !! Disposable Email!";
}else{
    echo
"OK";
}


  Files folder image Files  
File Role Description
Plain text file DisposableEmail.class.php Class Class source
Accessible without login Plain text file example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:508
This week:1
All time:5,778
This week:560Up
 User Ratings  
 
 All time
Utility:81%StarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1146