summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorRobert Angyal <robertonline.81@gmail.com>2016-06-04 12:12:28 +0200
committerRobert Angyal <robertonline.81@gmail.com>2016-06-04 12:12:28 +0200
commite341601efed83a2c9cdca72de30de43a7ae12e1d (patch)
tree50d839a9dbbfd3f75d48ec5e0d9b7d0e360ef57e /system
parent21a41ba37b9248291939cf4c801ac0f27982668e (diff)
Update Email.php
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Email.php12
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;
}