src/Koldy/Log/Adapter/Email.php
protected function sendEmail(): void
    {
        if (!$this->emailing) {
            $mail = $this->getEmail();

            try {
                $this->emailing = true;
                $mail->send();
                $this->messages = [];
                $this->emailing = false;
            } catch (Mail\Exception $e) {
                Log::alert('Can not send log message(s) with e-mail logger', $e);
            }
        }
    }
protected function sendEmail(): void
    {
        if (!$this->emailing) {
            $mail = $this->getEmail();

            try {
                $this->emailing = true;
                $mail->send();
                $this->messages = [];
                $this->emailing = false;
            } catch (Mail\Exception $e) {
                Log::alert('Can not send log message(s) with e-mail logger', $e);
            }
        }
    }
protected function sendEmail ( ) : void { if ( ! $ this -> emailing ) { $ mail = $ this -> getEmail ( ) ; try { $ this -> emailing = true ; $ mail -> send ( ) ; $ this -> messages = [ ] ; $ this -> emailing = false ; } catch ( Mail \ Exception $ e ) { Log :: alert ( 'Can not send log message(s) with e-mail logger' , $ e ) ; } } }
Send e-mail report if system detected that e-mail should be sent

@throws Exception
@throws \Koldy\Exception
Send e - mail report if system detected that e - mail should be sent