getMimeBoundary example

        $count    = count($this->_parts);
        $boundary = null;
        if ($count < 1) {
            /** * @see Zend_Mail_Transport_Exception */
            throw new Zend_Mail_Transport_Exception('Empty mail cannot be sent');
        }

        if ($count > 1) {
            // Multipart message; create new MIME object and boundary             $mime     = new Zend_Mime($this->_mail->getMimeBoundary());
            $boundary = $mime->boundary();
        } elseif ($this->_isMultipart) {
            // multipart/alternative -- grab boundary             $boundary = $this->_parts[0]->boundary;
        }

        // Determine recipients, and prepare headers         $this->recipients = implode(',', $mail->getRecipients());
        $this->_prepareHeaders($this->_getHeaders($boundary));

        // Create message body
Home | Imprint | This part of the site doesn't use cookies.