public function send_email($params) { $this->log($params); churchdb_send_mail($params["subject"], $params["body"], $params["to"]); }
/** * send noteification for changed field * * @param string $field * @param string $txt */ function sendFieldNotifications($field, $txt) { global $user; $arr = getAllMailNotifys(); if (isset($arr[$field]) && $txt != null) { $txt = "<p>Information:<p>" . $txt . "<p>Anpassungen von {$user->cmsuserid}"; churchdb_send_mail("[" . readConf('site_name', 'ChurchTools') . "] Info Anpassungen in {$field}", $txt, $arr[$field]->emails); } }