diff --git a/admin/inc/class.admin_asyncservice.inc.php b/admin/inc/class.admin_asyncservice.inc.php index 88d938855c..cb19e5fbbf 100644 --- a/admin/inc/class.admin_asyncservice.inc.php +++ b/admin/inc/class.admin_asyncservice.inc.php @@ -190,15 +190,22 @@ class admin_asyncservice echo $GLOBALS['egw']->framework->footer(); } + /** + * Callback for test-job + * + * @param string $to email address to send mail to + */ function test($to) { - $returncode = $GLOBALS['egw']->send->msg('email',$to,$subject='Asynchronous timed services','Greetings from cron ;-)'); - - if (!$returncode) // not nice, but better than failing silently - { - echo "
bocalendar::send_update: sending message to '$to' subject='$subject' failed !!!
\n";
- echo $GLOBALS['egw']->send->err['desc']."