src/Mime/MimePart.php
final public function setTransformedBody($transformedBody)
    {
        $encoding = (isset($this->headers["Content-Transfer-Encoding"])) ? $this->headers["Content-Transfer-Encoding"] : "";

        switch ($encoding) {
            case "quoted-printable":
                $this->setRawBody(quoted_printable_encode($transformedBody));
                break;
            case "base64":
                $this->setRawBody(chunk_split(base64_encode($transformedBody), 76));
                break;
            default:
                $this->setRawBody($transformedBody);
        }
    }
final public function setTransformedBody($transformedBody)
    {
        $encoding = (isset($this->headers["Content-Transfer-Encoding"])) ? $this->headers["Content-Transfer-Encoding"] : "";

        switch ($encoding) {
            case "quoted-printable":
                $this->setRawBody(quoted_printable_encode($transformedBody));
                break;
            case "base64":
                $this->setRawBody(chunk_split(base64_encode($transformedBody), 76));
                break;
            default:
                $this->setRawBody($transformedBody);
        }
    }
final public function setTransformedBody ( $ transformedBody ) { $ encoding = ( isset ( $ this -> headers [ "Content-Transfer-Encoding" ] ) ) ? $ this -> headers [ "Content-Transfer-Encoding" ] : "" ; switch ( $ encoding ) { case "quoted-printable" : $ this -> setRawBody ( quoted_printable_encode ( $ transformedBody ) ) ; break ; case "base64" : $ this -> setRawBody ( chunk_split ( base64_encode ( $ transformedBody ) , 76 ) ) ; break ; default : $ this -> setRawBody ( $ transformedBody ) ; } }
Takes a transformed body and turns it into the raw body string needed for the mime encoding.

@param $transformedBody
Takes a transformed body and turns it into the raw body string needed for the mime encoding .