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