The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I create an interactive webmail community?

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

  1. bobyk

    bobyk Registered

    Joined:
    Nov 20, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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:
    16
  3. mywebserver

    mywebserver Member

    Joined:
    Oct 4, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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