src/Mail/mime.php
function &_addTextPart(&$obj = null, $text = '')
    {
        $params['content_type'] = 'text/plain';
        $params['encoding']     = $this->_build_params['text_encoding'];
        $params['charset']      = $this->_build_params['text_charset'];
        $params['eol']          = $this->_build_params['eol'];

        if (is_object($obj)) {
            $ret = $obj->addSubpart($text, $params);
        } else {
            $ret = new Mail_mimePart($text, $params);
        }

        return $ret;
    }
function &_addTextPart(&$obj = null, $text = '')
    {
        $params['content_type'] = 'text/plain';
        $params['encoding']     = $this->_build_params['text_encoding'];
        $params['charset']      = $this->_build_params['text_charset'];
        $params['eol']          = $this->_build_params['eol'];

        if (is_object($obj)) {
            $ret = $obj->addSubpart($text, $params);
        } else {
            $ret = new Mail_mimePart($text, $params);
        }

        return $ret;
    }
Adds a text subpart to the mimePart object and
returns it during the build process.

@param mixed  &$obj The object to add the part to, or
null if a new object is to be created.
@param string $text The text to add.

@return object      The text mimePart object
@access private