Ignore:
Timestamp:
11/03/11 13:26:45 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2305 - Enviando alteracoes, desenvolvidas internamente na Prognus. Library: bibliotecas de terceiros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/library/mime/mime.php

    r4414 r5135  
    6464 * This package depends on PEAR to raise errors. 
    6565 */ 
    66 //require_once 'PEAR.php'; 
     66require_once $_SESSION['rootPath'].'/library/PEAR/PEAR.php'; 
    6767 
    6868/** 
     
    977977            } 
    978978            break; 
    979  
    980         case $html && $attachments && $html_images: 
     979                /* 
     980                 * Original: 
     981                 * case $html && $attachments && $html_images: 
    981982            $message =& $this->_addMixedPart(); 
    982983            if (isset($this->_txtbody)) { 
     
    994995                $this->_addAttachmentPart($message, $this->_parts[$i]); 
    995996            } 
     997                 *      break; 
     998                 * Alteração feita para que as imagens senjam inseridas junto com os anexos e não em uma alternate part. 
     999                 * Para compatibilização com a fomra do expresso anexar imagens no copo do e-mail 
     1000                 *  
     1001                 */ 
     1002                case $html && $attachments && $html_images: 
     1003            $message =& $this->_addMixedPart(); 
     1004            if (isset($this->_txtbody)) { 
     1005                $alt =& $this->_addAlternativePart($message); 
     1006                $this->_addTextPart($alt, $this->_txtbody); 
     1007            } else { 
     1008                                $this->_addHtmlPart($message); 
     1009            } 
     1010                         
     1011            for ($i = 0; $i < count($this->_html_images); $i++) { 
     1012                $this->_addHtmlImagePart($message, $this->_html_images[$i]); 
     1013            } 
     1014            for ($i = 0; $i < count($this->_parts); $i++) { 
     1015                $this->_addAttachmentPart($message, $this->_parts[$i]); 
     1016            } 
    9961017            break; 
     1018                /* 
     1019                 * Fim da alteração 
     1020                 */      
    9971021 
    9981022        } 
Note: See TracChangeset for help on using the changeset viewer.