/** * Get the Content of the current Mime Part in the given encoding. * * @param string $EOL * @return string */ public function getContent($EOL = Zend_Mime::LINEEND) { if ($this->_isStream) { $result = stream_get_contents($this->getEncodedStream($EOL)); } else { $result = Zend_Mime::encode($this->_content, $this->encoding, $EOL); if ($this->encoding !== Zend_Mime::ENCODING_QUOTEDPRINTABLE && $this->encoding !== Zend_Mime::ENCODING_BASE64) { // need to replace those \r\n with $EOL and we don't want to overwrite Zend_Mime $result = str_replace("\r\n", $EOL, $result); } } return $result; }
/** * Get the Content of the current Mime Part in the given encoding. * * @return String */ public function getContent($EOL = Zend_Mime::LINEEND) { if ($this->_isStream) { return stream_get_contents($this->getEncodedStream()); } else { return Zend_Mime::encode($this->_content, $this->encoding, $EOL); } }
/** * Get the Content of the current Mail Part in the given encoding. * * @return String */ public function getContent() { return Zend_Mime::encode($this->_content, $this->encoding); }