Bolt\Configuration\Check\EmailSetup::checkMailOptions PHP Method

checkMailOptions() protected method

protected checkMailOptions ( )
    protected function checkMailOptions()
    {
        $fail = false;
        if ($this->app['config']->get('general/mailoptions') === null) {
            $this->createResult()->fail()->setMessage("The 'mailoptions' parameters are not set in config.yml");
            return true;
        }
        if ($this->app['config']->get('general/mailoptions/transport') === null) {
            $this->createResult()->fail()->setMessage("The mailoptions 'transport' parameter is not set in config.yml");
            $fail = true;
        }
        if ($this->app['config']->get('general/mailoptions/spool') === null) {
            $this->createResult()->fail()->setMessage("The mailoptions 'spool' parameter is not set in config.yml");
            $fail = true;
        }
        return $fail;
    }