/** * 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(); } }
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(); } }