diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-21 12:31:59 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-21 12:31:59 +0000 |
| commit | 05a854a8283e648cd119fd6c588b49583e19d83e (patch) | |
| tree | eb6c0d15696fc284df200b706cfe4a071ddb1a72 /roundcubemail/program/include/rcmail.php | |
| parent | 59a52c5bb93beef2cc1191da032620ee53be6da3 (diff) | |
- use simple rcube_smtp class
- Installer: fix SMTP settings test
git-svn-id: https://svn.roundcube.net/trunk@2776 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 627a8f290..a508e1718 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/program/include/rcmail.php @@ -35,6 +35,7 @@ class rcmail public $config; public $user; public $db; + public $smtp; public $imap; public $output; public $plugins; @@ -338,6 +339,20 @@ class rcmail 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 @@ class rcmail $this->imap->write_cache(); } + if (is_object($this->smtp)) + $this->smtp->disconnect(); + if (is_object($this->contacts)) $this->contacts->close(); |
