summaryrefslogtreecommitdiff
path: root/plugins/mail
diff options
context:
space:
mode:
authorjustauser <[email protected]>2013-05-29 16:23:04 -0400
committerjustauser <[email protected]>2013-05-29 16:23:04 -0400
commitf766373271b4d388597f95ef2a55d028fcbca8f1 (patch)
tree5c2fb73da3a0fc77cc6ff58f839fece4ed4e40ec /plugins/mail
parented7dd4bf6c8c94e740b32b17545b5fe60fedc1f0 (diff)
added a personalized email template. if the file:
my_email_article_template.txt exists it will be used, otherwise the default will be used
Diffstat (limited to 'plugins/mail')
-rw-r--r--plugins/mail/init.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mail/init.php b/plugins/mail/init.php
index 5b61c2355..3b1582081 100644
--- a/plugins/mail/init.php
+++ b/plugins/mail/init.php
@@ -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);