H4T3D

Mass Valid Email Checker

Sep 10th, 2015
2,915
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.77 KB | None | 0 0
  1. <head>
  2. <link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'>
  3. </head>
  4. <style>
  5. html,body{
  6.     font-family: 'Orbitron', sans-serif;
  7.     background:#000000;
  8. }
  9.  
  10. input {
  11.     color: 3300FF;
  12.     border:4px solid #33CCFF;
  13.     font-family: 'Orbitron', sans-serif;
  14. }
  15. h3,fieldset {
  16.     color: #FFFFFF;
  17.     width:50%;
  18.     border:4px solid red;
  19.     font-family: 'Orbitron', sans-serif;
  20.  
  21. }
  22. </style>
  23. <center>
  24. <img src="http://i.imgur.com/CO3ooXD.gif"/>
  25. <br></br>
  26. <fieldset>
  27. <legend><h2>Upload Email File To Check</h2></legend></br>
  28. <form action="" method="POST" enctype="multipart/form-data">
  29.  
  30. <input type="file" name="files">
  31.  
  32.  <br>
  33.  </br>
  34. <input type='submit' name='scan' value='START CHECKING'>
  35.  <br>
  36.  </br>
  37. <h3> >> <a href="validemails.txt">Valid Emails</a></h3>
  38. </fieldset>
  39. </form>
  40.  <br>
  41. <h3>Coded By H4T3D</h3>
  42.  </br>
  43. </center>
  44. <?php
  45. error_reporting(0);
  46. set_time_limit(0);
  47. if(isset($_POST['scan']))
  48. {
  49. function checking($email)
  50.                 {
  51. static $counter=1;
  52. print($counter++." ,Checking: $email<br>");
  53.  
  54. if (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$", $email)) {
  55.  
  56.     print("Format Test: PASSED<br>");
  57.     print("Online host verification Test...<br><br>");
  58.     print("MX Records for: $email<br>");
  59.    
  60.     list($alias, $domain) = split("@", $email);
  61.    
  62.     if (checkdnsrr($domain, "MX")) {
  63.    
  64.         getmxrr($domain, $mxhosts);
  65.        
  66.         foreach($mxhosts as $mxKey => $mxValue){
  67.             print("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$mxValue<br>");
  68.         }
  69.        
  70.         print("Online host verification Test: PASSED<br><br>");
  71.         print("<font color='#00FF00'>Email Status: VALID</font></br>");
  72.     $myfile = fopen("validemails.txt", "a") or die("Unable to open file!");
  73.     fwrite($myfile, $email."\n");
  74.     fclose($myfile);
  75.  
  76.    
  77.     } else {
  78.    
  79.         print("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No records found.<br>");
  80.         print("<font color='red'>Online host verification Test: FAILED</font><br><br>");
  81.         print("Email Status: INVALID<br><br>");
  82.    
  83.     }
  84.  
  85. } else {
  86.  
  87.     print("Format Test: FAILED<br><br>");
  88.     print("<font color='red'>Invalid email address provided.</font><br><br>");
  89.     print("Email Status: INVALID<br><br>");
  90.    
  91. }
  92.  
  93.  
  94.  
  95.  
  96.  
  97.                         }// end of checking
  98.  
  99.  
  100.  
  101. $files = @$_FILES["files"];
  102.  
  103. if ($files["name"] != '')
  104.  
  105.      {
  106.  
  107.     $fullpath = $_REQUEST["path"] . $files["name"];
  108.     if (move_uploaded_file($files['tmp_name'],$fullpath))
  109.         {
  110.  
  111.     $file = fopen($files["name"], "r");
  112.     while(!feof($file))
  113.             {
  114.     $line = fgets($file);
  115.  
  116.  
  117. $email=$line;
  118. $email = @trim($email);
  119. echo checking($email);     
  120.  
  121.  
  122.  
  123.                        
  124.  
  125. } // end of file
  126.  
  127. fclose($file);
  128.  
  129.  
  130.                             }//UPLOADED FILE
  131.                                        
  132.  
  133.  
  134. }//IF FILE IS NOT NULL
  135.  
  136.  
  137.                                             }//end of scan button
  138.  
  139.  
  140. ?>
Advertisement
Add Comment
Please, Sign In to add comment