From 8ea4f687157f23f2bc8c7de384d6f0ecf3747861 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 1 Aug 2004 17:09:26 +0000 Subject: [PATCH] using new email address from the account --- admin/inc/class.uiasyncservice.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/admin/inc/class.uiasyncservice.inc.php b/admin/inc/class.uiasyncservice.inc.php index 3527fe4160..242965956c 100644 --- a/admin/inc/class.uiasyncservice.inc.php +++ b/admin/inc/class.uiasyncservice.inc.php @@ -76,12 +76,10 @@ if ($_POST['test']) { - $prefs = $GLOBALS['phpgw']->preferences->create_email_preferences(); - if (!$async->set_timer($times,'test','admin.uiasyncservice.test',$prefs['email']['address'])) + if (!$async->set_timer($times,'test','admin.uiasyncservice.test',$GLOBALS['phpgw_info']['user']['email'])) { echo '

'.lang("Error setting timer, wrong syntax or maybe there's one already running !!!")."

\n"; } - unset($prefs); } if ($_POST['cancel']) {