Class used for writing log messages to email via ZendMail.
Allows for emailing log messages at and above a certain level via a ZendMailMessage object. Note that this class only sends the email upon completion, so any log entries accumulated are sent in a single email. The email is sent using a ZendMailTransportTransportInterface object (Sendmail is default).
Constructor
Parameters: |
|
---|---|
Throws ExceptionInvalidArgumentException: | |
Set the transport message
Parameters: | TransportTransportInterface – |
---|---|
Return type: |
Places event line into array of lines to be used as message body.
Parameters: | array – Event data |
---|
Allows caller to have the mail subject dynamically set to contain the entry counts per-priority level.
Sets the text for use in the subject, with entry counts per-priority level appended to the end. Since a ZendMailMessage subject can only be set once, this method cannot be used if the ZendMailMessage object already has a subject set.
Parameters: | string – Subject prepend text |
---|---|
Return type: |
Sends mail to recipient(s) if log entries are present. Note that both plaintext and HTML portions of email are handled here.