public function getObject()
	{
		if( !empty( $this->_embedded ) )
		{
			$parts = array();

			if( $this->_html != null )
			{
				$part = new Zend_Mime_Part( $this->_html );

				$part->charset = $this->_object->getCharset();
				$part->encoding = Zend_Mime::ENCODING_QUOTEDPRINTABLE;
				$part->disposition = Zend_Mime::DISPOSITION_INLINE;
				$part->type = Zend_Mime::TYPE_HTML;

				$parts = array( $part );
			}

			$msg = new Zend_Mime_Message();
			$msg->setParts( array_merge( $parts, $this->_embedded ) );

			// create html body (text and maybe embedded), modified afterwards to set it to multipart/related
			$this->_object->setBodyHtml( $msg->generateMessage() );

			$related = $this->_object->getBodyHtml();
			$related->type = Zend_Mime::MULTIPART_RELATED;
			$related->encoding = Zend_Mime::ENCODING_8BIT;
			$related->boundary = $msg->getMime()->boundary();
			$related->disposition = null;
			$related->charset = null;
		}
		else if( $this->_html != null )
		{
			$this->_object->setBodyHtml( $this->_html );
		}

		return $this->_object;
	}
public function getObject()
	{
		if( !empty( $this->_embedded ) )
		{
			$parts = array();

			if( $this->_html != null )
			{
				$part = new Zend_Mime_Part( $this->_html );

				$part->charset = $this->_object->getCharset();
				$part->encoding = Zend_Mime::ENCODING_QUOTEDPRINTABLE;
				$part->disposition = Zend_Mime::DISPOSITION_INLINE;
				$part->type = Zend_Mime::TYPE_HTML;

				$parts = array( $part );
			}

			$msg = new Zend_Mime_Message();
			$msg->setParts( array_merge( $parts, $this->_embedded ) );

			// create html body (text and maybe embedded), modified afterwards to set it to multipart/related
			$this->_object->setBodyHtml( $msg->generateMessage() );

			$related = $this->_object->getBodyHtml();
			$related->type = Zend_Mime::MULTIPART_RELATED;
			$related->encoding = Zend_Mime::ENCODING_8BIT;
			$related->boundary = $msg->getMime()->boundary();
			$related->disposition = null;
			$related->charset = null;
		}
		else if( $this->_html != null )
		{
			$this->_object->setBodyHtml( $this->_html );
		}

		return $this->_object;
	}
public function getObject ( ) { if ( ! empty ( $ this -> _embedded ) ) { $ parts = array ( ) ; if ( $ this -> _html != null ) { $ part = new Zend_Mime_Part ( $ this -> _html ) ; $ part -> charset = $ this -> _object -> getCharset ( ) ; $ part -> encoding = Zend_Mime :: ENCODING_QUOTEDPRINTABLE ; $ part -> disposition = Zend_Mime :: DISPOSITION_INLINE ; $ part -> type = Zend_Mime :: TYPE_HTML ; $ parts = array ( $ part ) ; } $ msg = new Zend_Mime_Message ( ) ; $ msg -> setParts ( array_merge ( $ parts , $ this -> _embedded ) ) ; // create html body (text and maybe embedded), modified afterwards to set it to multipart/related $ this -> _object -> setBodyHtml ( $ msg -> generateMessage ( ) ) ; $ related = $ this -> _object -> getBodyHtml ( ) ; $ related -> type = Zend_Mime :: MULTIPART_RELATED ; $ related -> encoding = Zend_Mime :: ENCODING_8BIT ; $ related -> boundary = $ msg -> getMime ( ) -> boundary ( ) ; $ related -> disposition = null ; $ related -> charset = null ; } else if ( $ this -> _html != null ) { $ this -> _object -> setBodyHtml ( $ this -> _html ) ; } return $ this -> _object ; }
Returns the internal Zend mail object.

@return Zend_Mail Zend mail object
Returns the internal Zend mail object .