diff --git a/assets/mail_templates/default.html b/assets/mail_templates/default.html new file mode 100644 index 0000000..c6f302b --- /dev/null +++ b/assets/mail_templates/default.html @@ -0,0 +1,147 @@ + + +
+ + + + + +
+
|
+ |||
+
|
+
'.print_r($output, true).'', + 'TITLE' => 'Код: '.$retval, + 'LINK' => 'https://it-stories.ru/', + 'LINKNAME' => 'Перейти в панель', + 'FOOTER' => 'Сообщение сгенерировано автоматически', + 'SERVERNAME' => 'it-stories.ru' + ) + ); + + $mail->template = 'default'; + $mail->templateDir = $_SERVER['DOCUMENT_ROOT'].'/assets/mail_templates'; + + + // прикрепляем лог, если он есть + if(isset($file) and !empty($file) and file_exists($file)){ + $mail->addFile($file); + } + $mail->send(); \ No newline at end of file