From 6bea6ef975ca243c475f5159ee894e391dafad01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Mon, 31 Mar 2025 16:33:35 +0200 Subject: [PATCH] CMXX - Custom mail --- .../soveliti/mail/email_template_firmware.php | 99 ------------------- custom/soveliti/mail/email_template_new.php | 14 +-- custom/soveliti/mail/email_template_reset.php | 14 +-- .../soveliti/mail/email_template_software.php | 98 ------------------ custom/soveliti/settings/soveliti_config.php | 16 +-- 5 files changed, 22 insertions(+), 219 deletions(-) delete mode 100644 custom/soveliti/mail/email_template_firmware.php delete mode 100644 custom/soveliti/mail/email_template_software.php diff --git a/custom/soveliti/mail/email_template_firmware.php b/custom/soveliti/mail/email_template_firmware.php deleted file mode 100644 index 6583b6a..0000000 --- a/custom/soveliti/mail/email_template_firmware.php +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - ' . $subject . ' - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - '.$consent.' - -
- CustomerPortal -
- ' . $firmware_header . ', -
-
- '.$firmware_text.' -
-
- '.$firmware_text_closure.' -
- - - - - -
- Goto Portal -
-
-
- Kind regards, -
-
- Service team -
-
-
- -'; \ No newline at end of file diff --git a/custom/soveliti/mail/email_template_new.php b/custom/soveliti/mail/email_template_new.php index 8d37c51..4760382 100644 --- a/custom/soveliti/mail/email_template_new.php +++ b/custom/soveliti/mail/email_template_new.php @@ -3,10 +3,10 @@ defined($security_key) or exit; //------------------------------------------ // Content Reset Email //------------------------------------------ -$newuser_subject = 'CustomerPortal user created'; -$newuser_header = 'Dear CustomerPortal user'; +$newuser_subject = 'SoVeLiTi account created'; +$newuser_header = 'Dear user'; -$newuser_text = 'Your administrator has provided access to the CustomerPortal.'; +$newuser_text = 'Your administrator has provided access to SoVeLiTi.'; $newuser_credential_text_1 = 'Your account has been created with username '; $newuser_credential_text_2 = 'Please click the button below to complete your registration.'; @@ -44,8 +44,8 @@ $message = ' - @@ -68,7 +68,7 @@ $message = '
- CustomerPortal + + '.site_name.'
- @@ -90,7 +90,7 @@ $message = ' -
+ Reset Password
diff --git a/custom/soveliti/mail/email_template_reset.php b/custom/soveliti/mail/email_template_reset.php index d727c07..f9fafb4 100644 --- a/custom/soveliti/mail/email_template_reset.php +++ b/custom/soveliti/mail/email_template_reset.php @@ -3,10 +3,10 @@ defined($security_key) or exit; //------------------------------------------ // Content Reset Email //------------------------------------------ -$changeuser_subject = 'CustomerPortal - password reset requested'; -$changeuser_header = 'Dear CustomerPortal user'; +$changeuser_subject = 'SoVeLiTi - password reset requested'; +$changeuser_header = 'Dear user'; $changeuser_text = 'A password reset has been requested for your account.'; -$changeuser_credential_text_1 = 'Please click the button below to reset the password of your CustomerPortal account.'; +$changeuser_credential_text_1 = 'Please click the button below to reset the password of your SoVeLiTi account.'; $changeuser_closure = 'For security reasons this link is only active for 10 minutes.'; //------------------------------------------ @@ -41,8 +41,8 @@ $message = ' - @@ -65,7 +65,7 @@ $message = '
- CustomerPortal + + '.site_title.'
- @@ -87,7 +87,7 @@ $message = ' -
+ Reset Password
diff --git a/custom/soveliti/mail/email_template_software.php b/custom/soveliti/mail/email_template_software.php deleted file mode 100644 index 5584192..0000000 --- a/custom/soveliti/mail/email_template_software.php +++ /dev/null @@ -1,98 +0,0 @@ -'.software_update_user.' and password '.software_update_pw.' to login'; -$register_user_closure = 'This is a generic account and cannot be changed.'; - -//------------------------------------------ -// Content Email -//------------------------------------------ -$subject = $register_user_subject; - -$message = ' - - - - - - ' . $subject . ' - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - -
- CustomerPortal -
- ' . $register_user_header . ', -
-
- '.$register_user_text.' -
-
- '.$register_user_credential_text.' -
- - - - - -
- Goto Portal -
-
- ' . $register_user_closure . ' -
-
- Kind regards, -
-
- Service team -
-
-
- - -'; \ No newline at end of file diff --git a/custom/soveliti/settings/soveliti_config.php b/custom/soveliti/settings/soveliti_config.php index 7a55d84..8ab12a2 100644 --- a/custom/soveliti/settings/soveliti_config.php +++ b/custom/soveliti/settings/soveliti_config.php @@ -2,10 +2,10 @@ require 'settingsprofiles.php'; // This will change the title on the website -define('site_name','Customer Portal'); -define('site_name_footer','Total Safety Solutions'); +define('site_name',''); +define('site_name_footer','SoVeLiTi Cloud'); // This will change the title on browser TAB -define('site_title','Total Safety Solutions'); +define('site_title','SoVeLiTi'); //Scriptversion define('script_version','v1'); //Enable VeLiTi-issue mgt @@ -31,7 +31,7 @@ define('header_security',false); /* Email */ // The from email that will appear on the customer's order details email -define('mail_from','CustomerPortal'); +define('mail_from','SoVeLiTi'); // Your email define('email','CustomerPortal@veliti.nl'); //Additional phpmailer-settings @@ -43,10 +43,10 @@ define('email_outgoing_security','ssl'); /*Appearance*/ //Icon -define('icon_image','/assets/images/TSS-logo3.png'); -define('color','#005655c2'); -define('color_accent','#2FAC66'); -define('emaillogo','/assets/images/TSSemail.png'); +define('icon_image','/custom/soveliti/style/VeLiTi-Logo2.png'); +define('color','#527ee5'); +define('color_accent','#527ee5'); +define('emaillogo','/custom/soveliti/style/SoVeLiTi.png'); /*Default Users*/ define('software_update_user','EMP-updater');