For sometime ago I have been using this php code to create email accounts automatically - this code is not my own, one programmer made it using something similar that he found on this dboard. It used to be working just fine until recently.
Probably after some Cpanel upgrade it is no longer working.
Here is the code:
Any idea why it is no longer working?PHP Code:$host = "www.my_domain_name.com";
$socket = fsockopen($host,2082);
$cuser = "username";
$cpassword = "password";
$authstr = "$cuser:$cpassword";
$pass = base64_encode($authstr);
$in = "GET /frontend/x/mail/doaddpop.html?email=$username&domain=my_domain_name.com&password=$password"a=$cquo HTTP/1.0\r\nAuthorization: Basic $pass \r\n";
fputs($socket,$in);
fclose( $socket );
Thanks!
Tomas



LinkBack URL
About LinkBacks
Reply With Quote






