private static function emailError($message) { PHPWS_Core::initModClass('hms', 'HMS_Email.php'); //$to = HMSSettings::getUberAdminEmail(); $to = HMS_Email::get_tech_contacts(); $tags = array('MESSAGE' => $message); HMS_Email::send_template_message($to, '[hms] Uncaught Report Exception', 'email/UncaughtException.tpl', $tags); }
public static function sendReportCompleteNotification($username, $reportName) { $to = $username . TO_DOMAIN; $subject = '[hms] Report Complete: ' . $reportName; $tpl = array(); $tpl['REPORT_NAME'] = $reportName; HMS_Email::send_template_message($to, $subject, 'email/ReportCompleteNotification.tpl', $tpl); }