Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How can I create an interactive webmail community?

Discussion in 'E-mail Discussion' started by bobyk, Nov 20, 2004.

  1. bobyk

    bobyk Registered

    Joined:
    Nov 20, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    I'm sure it's been asked before, but i was wondering what are some suggestions to create an interactive webmail through a personal site, utilizing one of the three webmail services provided by tonhosting ( horde, squirrelmail, and one other one) Im looking for solutions and addons that would help me to allow people to just register for an email address and be able to log in on their own.
    Thanks!
     
  2. fwwebs

    fwwebs Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    329
    Likes Received:
    0
    Trophy Points:
    166
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mywebserver

    mywebserver Member

    Joined:
    Oct 4, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Code:
    	$emusername		= "<mailuser>";
    	$emnomd5pass	= "<mailpass>";
    	$host			= "<hostname>";
    	$domain			= "<domain>";
    	$equota			= "<quote>";
    	$cpaneluser		= "<username>";
    	$cpanelpass		= "<password>";
    	$cpaneltheme	= "x";
    	$socket = fsockopen($host,2082);
    	if(!$socket){
    		print('Socket error');
    		exit();
    	}
    	$authstr		= "$cpaneluser:$cpanelpass";
    	$pass			= base64_encode($authstr);
    	$in1			= "GET /frontend/$cpaneltheme/mail/doaddpop.html?email=$emusername&domain=$domain&password=$emnomd5pass&quota=$equota\r\n";
    	$in2			= "HTTP/1.0\r\n";
    	$in3			= "Host:$udomain\r\n";
    	$in4			= "Authorization: Basic $pass\r\n";
    	$in5			= "\r\n";
    	fputs($socket,$in1);
    	fputs($socket,$in2);
    	fputs($socket,$in3);
    	fputs($socket,$in4);
    	fputs($socket,$in5);
    	while (!feof($socket)) {
    		$tmp		= fgets ($socket,128);
    	}
    	fclose( $socket );
    
    This script will create a pop mailbox. Its faily straight forward but if you have any questions about it give us a yell.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice