public function disableMail($event)
    {
        $tags = array_merge($event->getFeature()->getTags(), $event->getScenario()->getTags());
        if (!in_array('sendmail', $tags) && !in_array('sendemail', $tags)) {
            $this->getMailManager()->disableMail();
            // Always reset mail count, in case the default mail manager is being used
            // which enables mail collecting automatically when mail is disabled, making
            //the use of the @mail tag optional in this case.
            $this->mailCount = [];
        }
    }