/**
  * Connect to the mail Server
  */
 public function connect()
 {
     $et = new ExceptionThrower();
     $et->start();
     //Do the connection
     $this->mailer = new Mailserver($this->protocol->connect($this->getConfig('username'), $this->getConfig('password')), $et);
     $et->stop();
     return true;
 }
 public function testPOP()
 {
     $this->protocol = new POP();
     $this->protocol->setMailserver('pop.gmail.com')->setPort(995)->setFolder('INBOX')->setSsl(true);
     $this->assertNotNull($this->protocol->connect($this->config->get('username'), $this->config->get('password')));
 }