From ecc546b38186934643bf766860e69b9eea27d0ec Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Thu, 9 Dec 2021 23:07:59 +0300 Subject: [PATCH] =?UTF-8?q?[+]=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BA=D1=80=D0=B0=D1=81=D0=BD=D1=8B=D0=B9=20?= =?UTF-8?q?=D1=88=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD=20=D1=80=D0=B0=D1=81=D1=81?= =?UTF-8?q?=D1=8B=D0=BB=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/mail_templates/default_red.html | 150 +++++++++++++++++++++++++ mailings.php | 2 +- 2 files changed, 151 insertions(+), 1 deletion(-) create mode 100644 assets/mail_templates/default_red.html diff --git a/assets/mail_templates/default_red.html b/assets/mail_templates/default_red.html new file mode 100644 index 0000000..d1c7232 --- /dev/null +++ b/assets/mail_templates/default_red.html @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + +
+ + + + + + + +
+

{HEADER}

+
+

{TITLE}

+

{MESSAGE}

+ + + + +
+

+ {LINKNAME} +

+
+
+
+ + + + +
+
+ + \ No newline at end of file diff --git a/mailings.php b/mailings.php index ca53cb5..a2b421b 100644 --- a/mailings.php +++ b/mailings.php @@ -66,7 +66,7 @@ if(isset($_REQUEST['save']) and $_REQUEST['save'] == 'Y'): ) ); - $mail->template = 'default'; + $mail->template = $_REQUEST['template'] ?? 'default'; $mail->templateDir = $_SERVER['DOCUMENT_ROOT'].'/assets/mail_templates'; /*