public function setBody($body, $charset = null, $wrap = false)
    {
        if (!$charset) {
            $charset = $this->_charset;
        }
        $body = Horde_String::convertCharset($body, 'UTF-8', $charset);
        if ($wrap) {
            $body = Horde_String::wrap($body, $wrap === true ? 76 : $wrap);
        }
        $this->_body = new Horde_Mime_Part();
        $this->_body->setType('text/plain');
        $this->_body->setCharset($charset);
        $this->_body->setContents($body);
        $this->_base = null;
    }
public function setBody($body, $charset = null, $wrap = false)
    {
        if (!$charset) {
            $charset = $this->_charset;
        }
        $body = Horde_String::convertCharset($body, 'UTF-8', $charset);
        if ($wrap) {
            $body = Horde_String::wrap($body, $wrap === true ? 76 : $wrap);
        }
        $this->_body = new Horde_Mime_Part();
        $this->_body->setType('text/plain');
        $this->_body->setCharset($charset);
        $this->_body->setContents($body);
        $this->_base = null;
    }
public function setBody ( $ body , $ charset = null , $ wrap = false ) { if ( ! $ charset ) { $ charset = $ this -> _charset ; } $ body = Horde_String :: convertCharset ( $ body , 'UTF-8' , $ charset ) ; if ( $ wrap ) { $ body = Horde_String :: wrap ( $ body , $ wrap === true ? 76 : $ wrap ) ; } $ this -> _body = new Horde_Mime_Part ( ) ; $ this -> _body -> setType ( 'text/plain' ) ; $ this -> _body -> setCharset ( $ charset ) ; $ this -> _body -> setContents ( $ body ) ; $ this -> _base = null ; }
Sets the message body text.

@param string $body             The message content.
@param string $charset          The character set of the message.
@param boolean|integer $wrap    If true, wrap the message at column 76;
If an integer wrap the message at that
column. Don't use wrapping if sending
flowed messages.
Sets the message body text .