PHP Classes
elePHPant
Icontem

How to Validate Email Blacklisting Disposable Temporary Addresses - Disposable Temporary Email Validator package blog

Recommend this page to a friend!
  All package blogs All package blogs   Disposable Temporary Email Validator Disposable Temporary Email Validator   Blog Disposable Temporary Email Validator package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Validate Email...  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author: Suresh Kumar

Posted on:

Package: Disposable Temporary Email Validator

Disposable email addresses are temporary addresses used by some people to access certain sites without using their real addresses.

Since these addresses prevent that the sites contact the users to send relevant information by email, it is useful for sites to prevent accepting this kind of addresses.

Read this article to learn how to validates temporary email addresses by blacklisting well known domains of disposable email address providers.




Temporary Email Services

There are lot of temporary email services which helps to users that want access sites without revealing their realy contacts. When you are registering in a new web site you may not provide your real email address because you did not have confidence on what the Web site is going to do to use your email address. So as a user, a temporary email address is good for you.

Why Using a Temporary Disposable Email Address Validator?

As a owner or Web master of a site you would not really want someone anonymously utilizing your Web site or any other benefit. So you really want to prevent accepting users with temporary email addresses in your Web site.

So the Disposable Temporary Email Validator PHP class was created in an attempt to make a a list of disposable email address domains and validate addresses against the list of temporary email providers.

How to Use this Class?

To use this class is very simple. Download the Disposable Email Validator PHP class from this. Include the class file and call the validate method with email address you want to check. Here is some example code:
<?php
require_once( 'DisposableEmail.class.php' );

$obj = new DisposableEmails();

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

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

Additional Recommendation

This sort of validation is not enough for blocking these type of anonymous access with disposable email addresses. So an email verification method like sending a confirmation emailmessage is recommended. Happy Coding!



You need to be a registered user or login to post a comment

1,416,360 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.




  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   Disposable Temporary Email Validator Disposable Temporary Email Validator   Blog Disposable Temporary Email Validator package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Validate Email...