From 89ce91aa009f5cd795b456e5b0eeca6de2062d5e Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Mon, 28 Oct 2024 13:01:59 +0100 Subject: [PATCH] json for the other mails --- application/controllers/Oqrs.php | 4 ++-- application/controllers/User.php | 8 ++++---- .../views/email/admin_reset_password.php | 8 ++++++-- application/views/email/forgot_password.php | 12 ++++++++---- application/views/email/oqrs_request.php | 17 +++++++++++------ 5 files changed, 31 insertions(+), 18 deletions(-) diff --git a/application/controllers/Oqrs.php b/application/controllers/Oqrs.php index eeeffc0f4..ec2005bb0 100644 --- a/application/controllers/Oqrs.php +++ b/application/controllers/Oqrs.php @@ -232,8 +232,8 @@ class Oqrs extends CI_Controller { $this->email->to($email); $this->email->reply_to($this->security->xss_clean($postdata['email']), strtoupper($data['callsign'])); - $this->email->subject('Wavelog OQRS from ' . strtoupper($data['callsign'])); - $this->email->message($message); + $this->email->subject($message['subject']); + $this->email->message($message['body']); if (! $this->email->send()) { log_message('error', 'OQRS Alert! Email settings are incorrect.'); diff --git a/application/controllers/User.php b/application/controllers/User.php index c9487af2b..20c66a62d 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -1011,8 +1011,8 @@ class User extends CI_Controller { $this->email->from($this->optionslib->get_option('emailAddress'), $this->optionslib->get_option('emailSenderName')); $this->email->to($email); - $this->email->subject('Wavelog Account Password Reset'); - $this->email->message($message); + $this->email->subject($message['subject']); + $this->email->message($message['body']); if (! $this->email->send()) { @@ -1098,8 +1098,8 @@ class User extends CI_Controller { $this->email->from($this->optionslib->get_option('emailAddress'), $this->optionslib->get_option('emailSenderName')); $this->email->to($data->user_email); - $this->email->subject('Wavelog Account Password Reset'); - $this->email->message($message); + $this->email->subject($message['subject']); + $this->email->message($message['body']); if (! $this->email->send()) { diff --git a/application/views/email/admin_reset_password.php b/application/views/email/admin_reset_password.php index 46ef231df..e67bda92b 100644 --- a/application/views/email/admin_reset_password.php +++ b/application/views/email/admin_reset_password.php @@ -1,6 +1,8 @@ -