From 6cc90d3444407a32d5a1f6ff29ebf8f01c0e760d Mon Sep 17 00:00:00 2001 From: Marius Burkard <m.burkard@pixcept.de> Date: Wed, 20 Jan 2016 05:02:21 -0500 Subject: [PATCH] Merge branch 'domain_specific_welcome_message' into 'stable-3.1' --- server/plugins-available/mail_plugin.inc.php | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/server/plugins-available/mail_plugin.inc.php b/server/plugins-available/mail_plugin.inc.php index caec01a..20388a4 100644 --- a/server/plugins-available/mail_plugin.inc.php +++ b/server/plugins-available/mail_plugin.inc.php @@ -206,7 +206,10 @@ } //* Send the welcome email message - if(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt')) { + $domain = explode('@', $data["new"]["email"])[1]; + if(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt')) { + $lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt'); + } elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt')) { $lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt'); } elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_en.txt')) { $lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_en.txt'); -- Gitblit v1.9.1