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 @@ - +
diff --git a/application/views/options/email.php b/application/views/options/email.php index edd46529..20e16eef 100644 --- a/application/views/options/email.php +++ b/application/views/options/email.php @@ -63,7 +63,7 @@
- optionslib->get_option('emailSenderName'));?>"> + optionslib->get_option('emailSenderName'); } ?>">
diff --git a/application/views/station_profile/index.php b/application/views/station_profile/index.php index 65ae9e4a..e5b21b7e 100644 --- a/application/views/station_profile/index.php +++ b/application/views/station_profile/index.php @@ -17,7 +17,7 @@

- + num_rows() > 0) { ?> @@ -33,7 +33,7 @@ - +
@@ -90,7 +90,7 @@ -
+