CRM_Utils_Mail_Logger
in package
An attachment to PEAR Mail which logs emails to files based on the CIVICRM_MAIL_LOG configuration.
(Produced by refactoring; specifically, extracting log-related functions from CRM_Utils_Mail.)
Tags
Table of Contents
Methods
Methods
filter()
public
static filter(CRM_Utils_Mail_FilteredPearMailer $mailer, mixed &$recipients, array<string|int, mixed> &$headers, string &$body) : mixed
Parameters
- $mailer : CRM_Utils_Mail_FilteredPearMailer
- $recipients : mixed
- $headers : array<string|int, mixed>
- $body : string
Return values
mixed —Normally returns null/void. But if the filter process is to be short-circuited, then returns a concrete value.
log()
private
static log(string|array<string|int, string> $to, array<string|int, string> $headers, string $message) : mixed
Parameters
- $to : string|array<string|int, string>
- $headers : array<string|int, string>
- $message : string