/** * Return the Debug Mail Filename. * * @return string */ private function filename() { $to = str_replace(['@', '.'], ['_at_', '_'], array_keys($this->message->getTo())[0]); return str_slug($this->message->getDate() . '_' . $to . '_' . $this->message->getSubject(), '_') . '.html'; }