Advertisement
janter13

bulk email

Jun 28th, 2014
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.05 KB | None | 0 0
  1. <?php
  2.  
  3. set_time_limit(0);
  4.  
  5. // cPanel info
  6. $cpuser = 'cpaneluser'; // cPanel username
  7. $cppass = 'cpanelpass'; // cPanel password
  8. $cpdomain = 'domain.com'; // cPanel domain or IP
  9. $cpskin = 'x3'; // cPanel skin. Mostly x or x2.
  10. $epass = 'emailpassy'; // email password $edomain = 'emaildomain.com'; // email domain (usually same as cPanel domain above)
  11.  
  12. $equota = 50; // amount of space in megabytes
  13. // Email format - {prefix}{number}@{domain.tld}
  14. $prefix = "zz";
  15. $start = "1";
  16. $end = "100";
  17. $separator = ":"; // The script will output in format emailid{separator}password. So if you want emailid:pass then enter ":" separator.
  18.  
  19. for($i=$start;$i<=$end;$i++) {
  20. $euser = $prefix . $i;
  21. $f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota", "r");
  22. if (!$f) {
  23. $msg = 'Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running
  24. in SAFE mode';break;
  25. }
  26. echo $euser . "@" . $edomain . $separator . $epass . "<br />";
  27. }
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement