Exemplo n.º 1
0
 public static function sendException($file, $message, $trace)
 {
     $body = "<html><body>\n";
     $body .= "<h3>{$file}</h3><p>{$message}</p><p><pre>{$trace}</pre></p>";
     $body .= "</body></html>\n";
     $alt = strip_tags($body);
     $creds = ["from" => self::getWebmasterEmail(), "name" => self::getWebmasterEmail(), "reply" => self::getWebmasterEmail(), "subject" => ENV . '-' . CShell::id() . " Webinar Error", "category" => CShell::id()];
     SystemTool::sendEmail($creds, SystemTool::getWebmasterEmail(), $body, $alt);
 }
Exemplo n.º 2
0
 private function send_exception($file, $message, $trace)
 {
     $body = "<html><body>\n";
     $body .= "<h2>{$file}</h2><br/><p>{$message}</p><br/><p><pre>{$trace}</pre></p>";
     $body .= "</body></html>\n";
     $alt = strip_tags($body);
     $creds = ["from" => "*****@*****.**", "name" => "Casey Research", "reply" => "*****@*****.**", "subject" => "Casey Research Link Server Error", "category" => "Link Server Error"];
     SystemTool::sendEmail($creds, SystemTool::getWebmasterEmail(), $body, $alt);
 }