diff --git a/application/controllers/Options.php b/application/controllers/Options.php index 1cf4562c..a01e14ab 100644 --- a/application/controllers/Options.php +++ b/application/controllers/Options.php @@ -272,7 +272,11 @@ class Options extends CI_Controller { $smtpEncryptionupdate = $this->optionslib->update('smtpEncryption', $this->input->post('smtpEncryption'), 'yes'); // Update email sender name within the options system - $emailSenderNameupdate = $this->optionslib->update('emailSenderName', $this->input->post('emailSenderName'), 'yes'); + $emailSenderName_value = $this->input->post('emailSenderName'); + if (empty($emailSenderName_value)) { + $emailSenderName_value = 'Cloudlog'; + } + $emailSenderNameupdate = $this->optionslib->update('emailSenderName', $emailSenderName_value, 'yes'); // Update email address choice within the options system $emailAddressupdate = $this->optionslib->update('emailAddress', $this->input->post('emailAddress'), 'yes'); @@ -360,6 +364,8 @@ class Options extends CI_Controller { 'smtp_port' => $this->optionslib->get_option('smtpPort'), 'smtp_user' => $this->optionslib->get_option('smtpUsername'), 'smtp_pass' => $this->optionslib->get_option('smtpPassword'), + 'crlf' => "\r\n", + 'newline' => "\r\n" ); $this->email->initialize($config); diff --git a/application/controllers/Oqrs.php b/application/controllers/Oqrs.php index ae46d42d..d559cb07 100644 --- a/application/controllers/Oqrs.php +++ b/application/controllers/Oqrs.php @@ -174,6 +174,8 @@ class Oqrs extends CI_Controller { 'smtp_port' => $this->optionslib->get_option('smtpPort'), 'smtp_user' => $this->optionslib->get_option('smtpUsername'), 'smtp_pass' => $this->optionslib->get_option('smtpPassword'), + 'crlf' => "\r\n", + 'newline' => "\r\n" ); $this->email->initialize($config); diff --git a/application/controllers/User.php b/application/controllers/User.php index 877d05f2..06f9a533 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -718,6 +718,8 @@ class User extends CI_Controller { 'smtp_port' => $this->optionslib->get_option('smtpPort'), 'smtp_user' => $this->optionslib->get_option('smtpUsername'), 'smtp_pass' => $this->optionslib->get_option('smtpPassword'), + 'crlf' => "\r\n", + 'newline' => "\r\n" ); $this->email->initialize($config); diff --git a/application/views/logbooks/index.php b/application/views/logbooks/index.php index 0b2c5137..1640ce7e 100644 --- a/application/views/logbooks/index.php +++ b/application/views/logbooks/index.php @@ -76,7 +76,7 @@ -