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'; /*