diff --git a/class.phpmailer.php b/class.phpmailer.php index d68e59cf8..60fb33fbe 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -2000,17 +2000,17 @@ protected function endBoundary($boundary) */ protected function setMessageType() { - $this->message_type = array(); + $type = array(); if ($this->alternativeExists()) { - $this->message_type[] = 'alt'; + $type[] = 'alt'; } if ($this->inlineImageExists()) { - $this->message_type[] = 'inline'; + $type[] = 'inline'; } if ($this->attachmentExists()) { - $this->message_type[] = 'attach'; + $type[] = 'attach'; } - $this->message_type = implode('_', $this->message_type); + $this->message_type = implode('_', $type); if ($this->message_type == '') { $this->message_type = 'plain'; }