Exemplo n.º 1
0
 /**
  * __construct 
  * 
  * @access public
  * @throws  Framework_Exception
  * @return void
  */
 public function __construct()
 {
     $this->userID = null;
     parent::__construct();
     $this->acceptLog(Framework::$log);
     $this->setDebug((bool) Framework::$site->config->debug);
     $this->vpopmailRobotProgram = (string) Framework::$site->config->vpopmailRobotProgram;
     $this->vpopmailRobotRime = (int) Framework::$site->config->vpopmailRobotTime;
     $this->vpopmailRobotNumber = (int) Framework::$site->config->vpopmailRobotNumber;
     $address = gethostbyname((string) Framework::$site->config->vpopmaildHost);
     $port = (string) Framework::$site->config->vpopmaildPort;
     try {
         $this->connect($address, $port);
     } catch (Net_Vpopmaild_FatalException $e) {
         throw new Framework_Exception("Error: " . $e->getMessage());
     }
 }