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