public function enableMail($event)
    {
        $tags = array_merge($event->getFeature()->getTags(), $event->getScenario()->getTags());
        if (!in_array('sendmail', $tags) && !in_array('sendemail', $tags)) {
            $this->getMailManager()->enableMail();
        }
    }
public function enableMail($event)
    {
        $tags = array_merge($event->getFeature()->getTags(), $event->getScenario()->getTags());
        if (!in_array('sendmail', $tags) && !in_array('sendemail', $tags)) {
            $this->getMailManager()->enableMail();
        }
    }
public function enableMail ( $ event ) { $ tags = array_merge ( $ event -> getFeature ( ) -> getTags ( ) , $ event -> getScenario ( ) -> getTags ( ) ) ; if ( ! in_array ( 'sendmail' , $ tags ) && ! in_array ( 'sendemail' , $ tags ) ) { $ this -> getMailManager ( ) -> enableMail ( ) ; } }
Restore mail sending.

@AfterScenario
Restore mail sending .