Horde_ActiveSync_Rfc822::getString PHP Method

getString() public method

Return the raw message data.
public getString ( ) : stream
return stream resource
    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;
        }
    }

Usage Example

Example #1
0
 /**
  * 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();
 }
All Usage Examples Of Horde_ActiveSync_Rfc822::getString