public function canBuild()
    {
        $configuration = $this->getEmailConfiguration();
        $emailAddress = (string)$configuration['defaultMailFromAddress'];

        return \filter_var($emailAddress, FILTER_VALIDATE_EMAIL) !== false;
    }
public function canBuild()
    {
        $configuration = $this->getEmailConfiguration();
        $emailAddress = (string)$configuration['defaultMailFromAddress'];

        return \filter_var($emailAddress, FILTER_VALIDATE_EMAIL) !== false;
    }
public function canBuild ( ) { $ configuration = $ this -> getEmailConfiguration ( ) ; $ emailAddress = ( string ) $ configuration [ 'defaultMailFromAddress' ] ; return \ filter_var ( $ emailAddress , FILTER_VALIDATE_EMAIL ) !== false ; }
Checks whether a valid email address has been set as defaultMailFromAddress.

@return bool
Checks whether a valid email address has been set as defaultMailFromAddress .