Hi all,
I have a PHP script which creates a pop3 mail account using the doaddpop in cpanel. Here is the code that should create the pop3 account-
<?
$host = "www.my-domain.co.uk";
$socket = fsockopen($host,2083);
$cuser = "MyUserName";
$cpassword = "MyPassword";
$authstr = "$cuser:$cpassword";
$pass = base64_encode($authstr);
$in = "GET /frontend/bluelagoon/mail/doaddpop.html?email=testuser&domain=my-domain.co.uk&password=testpass"a=20
HTTP/1.0\r\nAuthorization: Basic $pass \r\n";
fputs($socket,$in);
fclose( $socket );
?>
When i run the script i receive no error message, but when i check cpanel NO email account is created!!!
My host is Klooki.net
My cpanel version is 8.5.5-EDGE 57
My cpanel theme is Bluelagoon cPanel X v2.2.6
Anyone know how i can get the above code to work or what the problem may be ?
Thanks for your help
Chris.
I have a PHP script which creates a pop3 mail account using the doaddpop in cpanel. Here is the code that should create the pop3 account-
<?
$host = "www.my-domain.co.uk";
$socket = fsockopen($host,2083);
$cuser = "MyUserName";
$cpassword = "MyPassword";
$authstr = "$cuser:$cpassword";
$pass = base64_encode($authstr);
$in = "GET /frontend/bluelagoon/mail/doaddpop.html?email=testuser&domain=my-domain.co.uk&password=testpass"a=20
HTTP/1.0\r\nAuthorization: Basic $pass \r\n";
fputs($socket,$in);
fclose( $socket );
?>
When i run the script i receive no error message, but when i check cpanel NO email account is created!!!
My host is Klooki.net
My cpanel version is 8.5.5-EDGE 57
My cpanel theme is Bluelagoon cPanel X v2.2.6
Anyone know how i can get the above code to work or what the problem may be ?
Thanks for your help
Chris.