public/src/EmailControl/Email.php
private function getContent(string $dir, string $template): string
    {
        try {
            $smart = new \Smarty();
            $smart->setTemplateDir($dir);

            foreach ($this->variables as $name => $value)
                $smart->assign($name, $value);

            $retorno = $smart->fetch($template);
            $smart->clearAllAssign();

            return $retorno;

        } catch (\Exception $e) {
            $this->error = "Smarty Template Error: {$e->getMessage()}";
        }

        return "";
    }
private function getContent(string $dir, string $template): string
    {
        try {
            $smart = new \Smarty();
            $smart->setTemplateDir($dir);

            foreach ($this->variables as $name => $value)
                $smart->assign($name, $value);

            $retorno = $smart->fetch($template);
            $smart->clearAllAssign();

            return $retorno;

        } catch (\Exception $e) {
            $this->error = "Smarty Template Error: {$e->getMessage()}";
        }

        return "";
    }
Retorna o Content (corpo) do email
@param string $dir
@param string $template