| | |
| | | public $config; |
| | | public $user; |
| | | public $db; |
| | | public $smtp; |
| | | public $imap; |
| | | public $output; |
| | | public $plugins; |
| | |
| | | $this->output = new rcube_json_output($this->task); |
| | | |
| | | return $this->output; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Create SMTP object and connect to server |
| | | * |
| | | * @param boolean True if connection should be established |
| | | */ |
| | | public function smtp_init($connect = false) |
| | | { |
| | | $this->smtp = new rcube_smtp(); |
| | | |
| | | if ($connect) |
| | | $this->smtp->connect(); |
| | | } |
| | | |
| | | |
| | |
| | | $this->imap->write_cache(); |
| | | } |
| | | |
| | | if (is_object($this->smtp)) |
| | | $this->smtp->disconnect(); |
| | | |
| | | if (is_object($this->contacts)) |
| | | $this->contacts->close(); |
| | | |