summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 3c3c49e78..fac8a49d5 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -376,7 +376,13 @@ class CI_Email {
*
* @var string[]
*/
- protected $_priorities = array('1 (Highest)', '2 (High)', '3 (Normal)', '4 (Low)', '5 (Lowest)');
+ protected $_priorities = array(
+ 1 => '1 (Highest)',
+ 2 => '2 (High)',
+ 3 => '3 (Normal)',
+ 4 => '4 (Low)',
+ 5 => '5 (Lowest)'
+ );
// --------------------------------------------------------------------
@@ -1241,7 +1247,7 @@ class CI_Email {
{
$this->set_header('X-Sender', $this->clean_email($this->_headers['From']));
$this->set_header('X-Mailer', $this->useragent);
- $this->set_header('X-Priority', $this->_priorities[$this->priority - 1]);
+ $this->set_header('X-Priority', $this->_priorities[$this->priority]);
$this->set_header('Message-ID', $this->_get_message_id());
$this->set_header('Mime-Version', '1.0');
}