/** * Get HTML template for email * NOTE: Email needs to be set in config/config.ini when using CLI * @param string $path path to template * @return string $html */ public function getHtmlTemplate($path = null) { // Default path if (!$path) { $template = conf::getMainIni('template'); $path = conf::getTemplatePath($template) . '/mail/template.html'; } if (!file_exists($path)) { log::error('mailer/markdown: path does not exists: ' . $path); die; } $email = file_get_contents($path); return $email; }