if ($this->_subjectPrependText !== null
) { // Tack on the summary of entries per-priority to the subject
// line and set it on the Zend_Mail object.
$numEntries =
$this->
_getFormattedNumEntriesPerPriority();
$this->_mail->
setSubject( "{
$this->_subjectPrependText
} ({
$numEntries})"
);
} // Always provide events to mail as plaintext.
$this->_mail->
setBodyText(implode('',
$this->_eventsToMail
));
// Finally, send the mail. If an exception occurs, convert it into a
// warning-level message so we can avoid an exception thrown without a
// stack frame.
try { $this->_mail->
send();
} catch (Exception
$e) { trigger_error( "unable to send log entries via email; " .
"message = {
$e->
getMessage()}; " .
"code = {
$e->
getCode()}; " .