public function render($controller, $template, $data)
    {
        $view = new View($controller);
        $css = array();
        $html = $view->mail($template, $data, $css);
        $cssToInlineStyles = new CssToInlineStyles();
        $cssToInlineStyles->setCSS($this->getCss($css));
        $cssToInlineStyles->setHTML($html);
        return $cssToInlineStyles->convert();
    }
public function render($controller, $template, $data)
    {
        $view = new View($controller);
        $css = array();
        $html = $view->mail($template, $data, $css);
        $cssToInlineStyles = new CssToInlineStyles();
        $cssToInlineStyles->setCSS($this->getCss($css));
        $cssToInlineStyles->setHTML($html);
        return $cssToInlineStyles->convert();
    }
public function render ( $ controller , $ template , $ data ) { $ view = new View ( $ controller ) ; $ css = array ( ) ; $ html = $ view -> mail ( $ template , $ data , $ css ) ; $ cssToInlineStyles = new CssToInlineStyles ( ) ; $ cssToInlineStyles -> setCSS ( $ this -> getCss ( $ css ) ) ; $ cssToInlineStyles -> setHTML ( $ html ) ; return $ cssToInlineStyles -> convert ( ) ; }
Genera una vista del email compatible con clientes de correo

@param $controller
@param $template
@param $data
@return string
@throws \TijsVerkoyen\CssToInlineStyles\Exception
Genera una vista del email compatible con clientes de correo