PHP Classes

PHP Mailing List Sanitizer: Validate a list of email addresses

Recommend this page to a friend!
  Info   View files Example   View files View files (16)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 439 This week: 1All time: 6,257 This week: 560Up
Version License PHP version Categories
pmls 1.0.0Custom (specified...5Email, PHP 5, Validation
Description 

Author

This package can validate a list of email addresses.

It can take a list of email addresses from an array or load a list of email addresses from a given CSV file .

The class validate each email address and write a CSV file with the addresses that are valid.

Innovation Award
PHP Programming Innovation award winner
November 2017
Winner
Many applications require that users enter email addresses that are valid during registration, so the users can be contacted by email.

However, when you need to use email addresses of users already registered in the past, you may need a solution to validate many addresses of existing registered users.

This class can validate many email addresses of many users in a single process.

Manuel Lemos
Picture of zinsou A.A.E.Moïse
  Performance   Level  
Name: zinsou A.A.E.Moïse is available for providing paid consulting. Contact zinsou A.A.E.Moïse .
Classes: 50 packages by
Country: Benin Benin
Age: 34
All time rank: 6781 in Benin Benin
Week rank: 109 Up1 in Benin Benin Equal
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Recommendations

I need a bulk email verifier php script
I need php email verifier script to install on server

email validation
Bulk email validation

Example

<html>
<head>
<title>Test for PHP MailingList Sanitizer</title>
</head>
<body>
<h1 align="center">Test for PHP MailingList Sanitizer</h1>
<hr>
<?php
   
require_once('EmailChecker.class.php');
   
$x=new EmailChecker();
    echo
'<pre>';
    echo
'<h2>Uploaded file</h2>';
    if( isset(
$_POST ) && $_SERVER['REQUEST_METHOD'] == 'POST' ) {
       
print_r($x->Uprocess(time().'.csv'));//uploaded file sanitizer...sanitize and save to timestamp.csv(you can choose your own name provided that the file doesn't exist)
   
}
   
   

?>
<form method="post" enctype="multipart/form-data">
        <input type="file" name="file">
        <input type="submit" value="Submit">
    </form>
<?php
/*
        echo '<h2>Local File</h2>';
        print_r($x->LFprocess('r.csv',time().'.csv'));//local file sanitizer...sanitize and save to timestamp.csv(you can choose your own name provided that the file doesn't exist)
       
       
        echo '<h2>Data in Array</h2>';
        $ar=array('leizmo@gmail.com','corzinsou@gmail.com','mosewinsou@yul.com','schneider@machin.net','moinsou@yahoo.com');
        print_r($x->ARprocess($ar,time().'.csv'));//array sanitizer...sanitize and save to timestamp.csv(you can choose your own name provided that the file doesn't exist)
*/
       
echo'</pre>';
       
       
//ps: Omitting the parameter name will make all the functions just return the array of valid and broken and avoid saving in file.
?>
<hr>
</body>
</html>


Details

PHP MailingList Sanitizer is a package based on Manuel lemos package PHP E-mail validation that allows to sanitize a Mailing List by removing all non deliverable emails. It can take a local file with values separated by just a comma and sanitize the file before saving the sanitized data to a new file with a given name or return the result as array of arrays with broken and valid email. It can also take an uploaded file ,with values separated by just a comma ,sanitize it before saving the sanitized data to new file with a given name or return the result as array of arrays with broken and valid email. It can also take as paramater a simple array containing only emails address and sanitize the array returning the result as array of arrays with broken and valid email. Before using the package in a production environment be sure to change this two lines: const User='info' ; const Domain='phpclasses.org'; by your own user details to build your default email(here info@phpclasses.org just for the test) in the EmailChecker.class.php file. For how to use example see the testing_mailing_sanitizer.php file... For feedbacks, suggestions or bugs reporting use the Forum or contact me at leizmo@gmail.com

  Files folder image Files  
File Role Description
Plain text file DNS.php Class class source
Plain text file EmailChecker.class.php Class class source
Accessible without login Plain text file emaildomainswhitelist.csv Data auxilliary data
Plain text file email_validation.php Class class source
Accessible without login Plain text file fetchdns.c Aux. auxilliary C script
Accessible without login Plain text file getmxrr.php Aux. auxilliary script
Accessible without login Plain text file invalidemaildomains.csv Data auxilliary data
Accessible without login Plain text file invalidemailservers.csv Data auxilliary data
Accessible without login Plain text file invalidemailusers.csv Data auxilliary data
Accessible without login Plain text file license.txt Lic. license file
Accessible without login Plain text file makebcc.bat Aux. command windows file
Accessible without login Plain text file makegcc.bat Aux. command windows file
Accessible without login Plain text file r.csv Data auxilliary data
Accessible without login Plain text file readme.txt Doc. license file
Accessible without login Plain text file rrcompat.php Aux. auxilliary script
Accessible without login Plain text file test_mailinglist_sanitizer.php Example example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:439
This week:1
All time:6,257
This week:560Up