protected function smtpSend($header, $body) { if ($this->copyToFiles) { $this->copyMail($header, $body); } return parent::smtpSend($header, $body); }