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

Commit

Permalink
bug #889 addPart() does not inherit encoding (Sapistudio)
Browse files Browse the repository at this point in the history
This PR was merged into the 5.x branch.

Discussion
----------

addPart() does not inherit encoding

addPart() does not inherit encoding

Commits
-------

2b7e469 resolved
  • Loading branch information
fabpot committed May 1, 2017
2 parents a2caa64 + 2b7e469 commit a773780
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 a773780

Please sign in to comment.