Skip to content
Snippets Groups Projects
Commit f7663732 authored by justauser's avatar justauser
Browse files

added a personalized email template. if the file:

my_email_article_template.txt

exists it will be used, otherwise the default will be used
parent ed7dd4bf
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,10 @@ class Mail extends Plugin {
$tpl = new MiniTemplator;
$tpl_t = new MiniTemplator;
$tpl->readTemplateFromFile("templates/email_article_template.txt");
$templ_name = "templates/email_article_template.txt";
if(file_exists("templates/my_email_article_template.txt"))
$templ_name = "templates/my_email_article_template.txt";
$tpl->readTemplateFromFile($templ_name);
$tpl->setVariable('USER_NAME', $_SESSION["name"], true);
$tpl->setVariable('USER_EMAIL', $user_email, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment