summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-06-22 12:40:21 +0200
committerAndrey Andreev <narf@devilix.net>2017-06-22 12:40:21 +0200
commit8acd0fa915f61d4e152ce7505646865815b4f458 (patch)
tree7064d24b7273d348730d00c9ea59b144f3daa707 /system/libraries/Email.php
parent56c233fc4a455d33d2e679b59132b8a7a1cf1832 (diff)
[ci skip] Close #3711
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php22
1 files changed, 6 insertions, 16 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index fa5820dcd..73bf7ffdd 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1235,7 +1235,7 @@ class CI_Email {
/**
* Build Final Body and attachments
*
- * @return bool
+ * @return void
*/
protected function _build_message()
{
@@ -1402,8 +1402,6 @@ class CI_Email {
$this->_finalbody = ($this->_get_protocol() === 'mail')
? $body
: $hdr.$this->newline.$this->newline.$body;
-
- return TRUE;
}
// --------------------------------------------------------------------
@@ -1677,21 +1675,17 @@ class CI_Email {
if ($this->bcc_batch_mode && count($this->_bcc_array) > $this->bcc_batch_size)
{
- $result = $this->batch_bcc_send();
+ $this->batch_bcc_send();
- if ($result && $auto_clear)
+ if ($auto_clear)
{
$this->clear();
}
- return $result;
- }
-
- if ($this->_build_message() === FALSE)
- {
- return FALSE;
+ return TRUE;
}
+ $this->_build_message();
$result = $this->_spool_email();
if ($result && $auto_clear)
@@ -1750,11 +1744,7 @@ class CI_Email {
$this->_bcc_array = $bcc;
}
- if ($this->_build_message() === FALSE)
- {
- return FALSE;
- }
-
+ $this->_build_message();
$this->_spool_email();
}
}