app\EmailAlertHandler::sendErrorLog PHP Method

sendErrorLog() public method

public sendErrorLog ( Certificate $certificate )
$certificate Certificate
    public function sendErrorLog(Certificate $certificate)
    {
        if (!$this->config->alertError) {
            return false;
        }
        $subject = "Certificate " . $certificate->getName() . " issuance error";
        $body = "Hello,<br />\n" . " there happened error when script was issuing certificate " . $certificate->getName() . ":<br />\n<br />\n" . nl2br($certificate->getLastLog()) . $this->append;
        return $this->email($subject, $body);
    }