diff options
author | Robert Angyal <robertonline.81@gmail.com> | 2016-06-04 12:12:28 +0200 |
---|---|---|
committer | Robert Angyal <robertonline.81@gmail.com> | 2016-06-04 12:12:28 +0200 |
commit | e341601efed83a2c9cdca72de30de43a7ae12e1d (patch) | |
tree | 50d839a9dbbfd3f75d48ec5e0d9b7d0e360ef57e | |
parent | 21a41ba37b9248291939cf4c801ac0f27982668e (diff) |
Update Email.php
-rw-r--r-- | system/libraries/Email.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 21b62fea0..0a55e1841 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -1426,17 +1426,17 @@ class CI_Email { .$this->_prep_quoted_printable($this->_body).$this->newline.$this->newline .'--'.$alt_boundary.'--'.$this->newline.$this->newline; - // multipart/mixed attachments - if ( ! empty($atc_boundary)) + if ( ! empty($rel_boundary)) { $body .= $this->newline.$this->newline; - $this->_append_attachments($body, $atc_boundary, 'mixed'); + $this->_append_attachments($body, $rel_boundary, 'related'); } - if ( ! empty($rel_boundary)) + // multipart/mixed attachments + if ( ! empty($atc_boundary)) { $body .= $this->newline.$this->newline; - $this->_append_attachments($body, $rel_boundary, 'related'); + $this->_append_attachments($body, $atc_boundary, 'mixed'); } break; @@ -1455,7 +1455,7 @@ class CI_Email { { foreach ($this->_attachments as &$attachment) { - if ($attachment[$i]['multipart'] === $type) + if ($attachment['multipart'] === $type) { return TRUE; } |