Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- // cPanel info
- $cpuser = 'cpaneluser'; // cPanel username
- $cppass = 'cpanelpass'; // cPanel password
- $cpdomain = 'domain.com'; // cPanel domain or IP
- $cpskin = 'x3'; // cPanel skin. Mostly x or x2.
- $epass = 'emailpassy'; // email password $edomain = 'emaildomain.com'; // email domain (usually same as cPanel domain above)
- $equota = 50; // amount of space in megabytes
- // Email format - {prefix}{number}@{domain.tld}
- $prefix = "zz";
- $start = "1";
- $end = "100";
- $separator = ":"; // The script will output in format emailid{separator}password. So if you want emailid:pass then enter ":" separator.
- for($i=$start;$i<=$end;$i++) {
- $euser = $prefix . $i;
- $f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass"a=$equota", "r");
- if (!$f) {
- $msg = 'Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running
- in SAFE mode';break;
- }
- echo $euser . "@" . $edomain . $separator . $epass . "<br />";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement