public function getString() { if (!empty($this->_header_text)) { return Horde_Stream_Wrapper_Combine::getStream(array($this->_header_text, $this->getMessage()->stream)); } else { $this->_stream->rewind(); return $this->_stream->stream; } }
/** * Get the raw message suitable for saving to the sent email folder. * * @return stream A stream contianing the raw message. */ public function getSentMail() { if (!empty($this->_mailer)) { return $this->_mailer->getRaw(); } return $this->_raw->getString(); }