getMime example


    public function generateMessage($EOL = Zend_Mime::LINEEND)
    {
        if ($this->isMultiPart()) {
            $body = array_shift($this->_parts);
            $body = $body->getContent($EOL);
        } else {
            $mime = $this->getMime();

            $boundaryLine = $mime->boundaryLine($EOL);
            $body = 'This is a message in Mime Format. If you see this, '
                  . "your mail reader does not support this format." . $EOL;

            foreach (array_keys($this->_parts) as $p) {
                $body .= $boundaryLine
                       . $this->getPartHeaders($p$EOL)
                       . $EOL
                       . $this->getPartContent($p$EOL);
            }

            

    public function send(Zend_Mail $mail)
    {
        $this->_isMultipart = false;
        $this->_mail        = $mail;
        $this->_parts       = $mail->getParts();
        $mime               = $mail->getMime();

        // Build body content         $this->_buildBody();

        // Determine number of parts and boundary         $count    = count($this->_parts);
        $boundary = null;
        if ($count < 1) {
            /** * @see Zend_Mail_Transport_Exception */
            
Home | Imprint | This part of the site doesn't use cookies.