From 467c715ddc85639601df4e1763436431fdfccefb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 20 May 2014 17:15:37 +0000 Subject: [PATCH] need to use initialised smtp object from mail account --- mail/inc/class.mail_sieve.inc.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mail/inc/class.mail_sieve.inc.php b/mail/inc/class.mail_sieve.inc.php index 86dafca34a..23a14025cf 100644 --- a/mail/inc/class.mail_sieve.inc.php +++ b/mail/inc/class.mail_sieve.inc.php @@ -58,13 +58,6 @@ class mail_sieve */ var $currentIdentity; - /** - * emailamdin_smpt object - * - * @var object - */ - var $smtp; - /** * user has admin right to emailadmin * @@ -97,7 +90,6 @@ class mail_sieve $this->displayCharset = translation::charset(); $profileID = 0; $this->mail_admin = isset($GLOBALS['egw_info']['user']['apps']['emailadmin']); - $this->smtp = new emailadmin_smtp(); if (isset($GLOBALS['egw_info']['user']['preferences']['mail']['ActiveProfileID'])) { @@ -477,7 +469,7 @@ class mail_sieve } if (is_null($accountID)) $accountID = $GLOBALS['egw_info']['user']['account_id']; - $accAllIdentities = $this->smtp->getAccountEmailAddress(accounts::id2name($accountID)); + $accAllIdentities = $this->account->smtpServer()->getAccountEmailAddress(accounts::id2name($accountID)); $allAliases = array($this->account->acc_imap_username); foreach ($accAllIdentities as &$arrVal) {