Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
resolved
Browse files Browse the repository at this point in the history
addPart() does not inherit encoding
  • Loading branch information
Sapistudio committed Feb 27, 2017
1 parent 7f075aa commit 2b7e469
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/classes/Swift/Message.php
Expand Up @@ -86,9 +86,7 @@ public static function newInstance($subject = null, $body = null, $contentType =
*/
public function addPart($body, $contentType = null, $charset = null)
{
return $this->attach(Swift_MimePart::newInstance(
$body, $contentType, $charset
));
return $this->attach(Swift_MimePart::newInstance($body, $contentType, $charset)->setEncoder($this->getEncoder()));
}

/**
Expand Down

0 comments on commit 2b7e469

Please sign in to comment.