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

        $rawBody = $this->getRawBody();

        switch ($encoding) {
            case "quoted-printable":
                return quoted_printable_decode($rawBody);
                break;
            case "base64":
                return base64_decode($rawBody);
                break;
            default:
                return $rawBody;
        }
    }
final public function getTransformedBody()
    {
        $encoding = (isset($this->headers["Content-Transfer-Encoding"])) ? $this->headers["Content-Transfer-Encoding"] : "";

        $rawBody = $this->getRawBody();

        switch ($encoding) {
            case "quoted-printable":
                return quoted_printable_decode($rawBody);
                break;
            case "base64":
                return base64_decode($rawBody);
                break;
            default:
                return $rawBody;
        }
    }
final public function getTransformedBody ( ) { $ encoding = ( isset ( $ this -> headers [ "Content-Transfer-Encoding" ] ) ) ? $ this -> headers [ "Content-Transfer-Encoding" ] : "" ; $ rawBody = $ this -> getRawBody ( ) ; switch ( $ encoding ) { case "quoted-printable" : return quoted_printable_decode ( $ rawBody ) ; break ; case "base64" : return base64_decode ( $ rawBody ) ; break ; default : return $ rawBody ; } }
Transforms the part as per the transform encoding header and returns the transformed result.
Transforms the part as per the transform encoding header and returns the transformed result .