alecpl
2009-07-21 2c3d81dddd8d931385022a065515d6ef42d7fb7d
program/include/rcmail.php
@@ -35,6 +35,7 @@
  public $config;
  public $user;
  public $db;
  public $smtp;
  public $imap;
  public $output;
  public $plugins;
@@ -337,6 +338,20 @@
      $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();
  }
  
  
@@ -842,6 +857,9 @@
      $this->imap->write_cache();
    }
    if (is_object($this->smtp))
      $this->smtp->disconnect();
    if (is_object($this->contacts))
      $this->contacts->close();