method __construct documentation in bbn\Appui\Mailbox2

function(string $user, string $pass, string $type, string $host = NULL) { $this->host = $host; $this->type = $type; $this->login = $user; $this->pass = $pass; $this->directory = ''; $this->account = 0; switch ($this->type) { case 'hotmail': $this->port = 993; $this->mbParam = '{imap.live.com:' . $this->port . '/imap/ssl}'; break; case 'gmail': $this->port = 993; $this->mbParam = '{imap.googlemail.com:' . $this->port . '/imap/ssl}'; break; case 'pop': $this->port = 110; $this->mbParam = '{' . $this->host . ':' . $this->port . '/pop3}'; break; case 'imap': $this->port = 143; $this->mbParam = '{' . $this->host . ':' . $this->port . '/imap/tls/novalidate-cert}'; break; case 'local': if ($_SERVER['REMOTE_PORT'] != 1975) { $this->host = 'localhost'; } $this->port = 143; $this->mbParam = '{' . $this->host . ':' . $this->port . '/imap/tls/novalidate-cert}'; break; } if (isset($this->mbParam)) { try { $this->stream = @imap_open($this->mbParam . $this->directory, $this->login, $this->pass); } catch (\Exception $e) { //throw new \Exception($e->getMessage()); } if ($this->stream) { $this->status = 'ok'; } else { $this->status = imap_last_error(); } } }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.