Exemple #1
0
 /**
  * Send Email upon error.
  *
  * @param  string $message holds the error to send
  */
 public static function sendEmail($message)
 {
     if (self::$emailError == true) {
         $mail = new Mail();
         $mail->setFrom(SITEEMAIL);
         $mail->addAddress(SITEEMAIL);
         $mail->subject('New error on ' . SITETITLE);
         $mail->body($message);
         $mail->send();
     }
 }
Exemple #2
0
 public static function sendEmail($message)
 {
     if (self::$emailError == true) {
         $mail = new Mail();
         $mail->setFrom('*****@*****.**');
         $mail->CharSet = 'UTF-8';
         $mail->addAddress('*****@*****.**');
         $mail->subject('Новая ошибка на ' . SITETITLE);
         $mail->body($message);
         $mail->send();
     }
 }