Author: Suresh Kumar
Viewers: 1,355
Last month viewers: 4
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.
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
Login Immediately with your account on:
Comments:
No comments were submitted yet.