Changeset 5135 for trunk/library/mime/mime.php
- Timestamp:
- 11/03/11 13:26:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/mime/mime.php
r4414 r5135 64 64 * This package depends on PEAR to raise errors. 65 65 */ 66 //require_once 'PEAR.php';66 require_once $_SESSION['rootPath'].'/library/PEAR/PEAR.php'; 67 67 68 68 /** … … 977 977 } 978 978 break; 979 980 case $html && $attachments && $html_images: 979 /* 980 * Original: 981 * case $html && $attachments && $html_images: 981 982 $message =& $this->_addMixedPart(); 982 983 if (isset($this->_txtbody)) { … … 994 995 $this->_addAttachmentPart($message, $this->_parts[$i]); 995 996 } 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 } 996 1017 break; 1018 /* 1019 * Fim da alteração 1020 */ 997 1021 998 1022 }
Note: See TracChangeset
for help on using the changeset viewer.