IMP_Sentmail::log PHP 메소드

log() 공개 메소드

Logs an attempt to send a message.
public log ( integer $action, string $message_id, string | array $recipients, boolean $success = true )
$action integer Why the message was sent (IMP_Sentmail constant).
$message_id string The Message-ID.
$recipients string | array The list of message recipients.
$success boolean Whether the attempt was successful.
    public function log($action, $message_id, $recipients, $success = true)
    {
        if (!is_array($recipients)) {
            $recipients = array($recipients);
        }
        foreach ($recipients as $addresses) {
            foreach (IMP::parseAddressList($addresses) as $recipient) {
                $this->_log($action, $message_id, $recipient->bare_address, $success);
            }
        }
    }