public function send($name = '', callable $callback)
    {
        $configs = Config::get($name);
        $driver = $this->driver(isset($configs['driver']) ? $configs['driver']: 'swift', $configs);

        return $callback($driver);
    }
public function send($name = '', callable $callback)
    {
        $configs = Config::get($name);
        $driver = $this->driver(isset($configs['driver']) ? $configs['driver']: 'swift', $configs);

        return $callback($driver);
    }
public function send ( $ name = '' , callable $ callback ) { $ configs = Config :: get ( $ name ) ; $ driver = $ this -> driver ( isset ( $ configs [ 'driver' ] ) ? $ configs [ 'driver' ] : 'swift' , $ configs ) ; return $ callback ( $ driver ) ; }
send the mail with config name and closure callback

@param string $name
@param callable $callback
@return mixed
@throws DriverException
@throws DriverNotInstalledException
send the mail with config name and closure callback