Advertisement
TD_27

random email sender PHP for mailer

May 17th, 2017
960
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10. /*$penerima = '
  11. tegar.dazzly@gmail.­com tdazzly27@gmail.com
  12. td.27@gmail.­com'; //ini list email penerima
  13.  
  14.  
  15.  
  16. $oengirim = 'random1@gmail.­com, random184848@gmail.com random3@gmail.­com'; //ini list email yg di jadiin pengirim (random)
  17.  
  18. */
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. $emaillist_menta = 'tegar.dazzly@gmail.­com, tdazzly27@gmail.com td.27@gmail.­com'; //list email peneri
  44.  
  45. $emaillist_mentah = 'random1@gmail.­com, random184848@gmail.com random3@gmail.­com'; //list sender email
  46.  
  47.  
  48. $word = preg_split("/[\s,]*\\\"([^\\\"]+)\\\"[\s,]*|" . "[\s,]*'([^']+)'[\s,]*|" . "[\s,]+/", $emaillist_menta, 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
  49.  
  50.  
  51. $words = preg_split("/[\s,]*\\\"([^\\\"]+)\\\"[\s,]*|" . "[\s,]*'([^']+)'[\s,]*|" . "[\s,]+/", $emaillist_mentah, 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
  52. $count = count($word);
  53. for($i=0;$i<$count;$i++){
  54. $emailes = $words;
  55. $te=array_rand($emailes);
  56. //foreach($emaillist_menta as $kentut){
  57. echo "<font size='1'> Pesan Terkirim dari " . $words[$te] . " Ke " . $word[$i] . "==>OK</font><br>" ;
  58.  
  59. flush();
  60. ob_flush();
  61. sleep(1);
  62. }
  63.  
  64. echo "<font color='green'>Done.</font>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement