getPartContent example

 else {
            $mime = $this->getMime();

            $boundaryLine = $mime->boundaryLine($EOL);
            $body = 'This is a message in Mime Format. If you see this, '
                  . "your mail reader does not support this format." . $EOL;

            foreach (array_keys($this->_parts) as $p) {
                $body .= $boundaryLine
                       . $this->getPartHeaders($p$EOL)
                       . $EOL
                       . $this->getPartContent($p$EOL);
            }

            $body .= $mime->mimeEnd($EOL);
        }

        return trim($body);
    }

    /** * Get the headers of a given part as an array * * @param int $partnum * @return array */
Home | Imprint | This part of the site doesn't use cookies.