Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }