25 #require_once 'Zend/Mime.php'; 131 $this->_isStream =
true;
163 if (!$this->_isStream) {
164 #require_once 'Zend/Mime/Exception.php'; 166 'Attempt to get a stream from a string part' 171 switch ($this->encoding) {
173 $filter = stream_filter_append(
175 'convert.quoted-printable-encode',
183 #require_once 'Zend/Mime/Exception.php'; 185 'Failed to append quoted-printable filter' 191 $filter = stream_filter_append(
193 'convert.base64-encode',
201 #require_once 'Zend/Mime/Exception.php'; 203 'Failed to append base64 filter' 223 if ($this->_isStream) {
237 if ($this->_isStream) {
238 return stream_get_contents($this->_content);
255 if ($this->charset) {
259 if ($this->boundary) {
260 $contentType .=
';' . $EOL
261 .
" boundary=\"" . $this->boundary .
'"';
269 if ($this->encoding) {
271 'Content-Transfer-Encoding',
279 '<' . $this->
id .
'>' 283 if ($this->disposition) {
285 if ($this->filename) {
289 'Content-Disposition',
294 if ($this->description) {
296 'Content-Description',
301 if ($this->location) {
308 if ($this->language) {
328 $res .= $header[0] .
': ' . $header[1] . $EOL;
static encode($str, $encoding, $EOL=self::LINEEND)
const ENCODING_QUOTEDPRINTABLE
getContent($EOL=Zend_Mime::LINEEND)
getHeadersArray($EOL=Zend_Mime::LINEEND)
getHeaders($EOL=Zend_Mime::LINEEND)