Ignore:
Timestamp:
03/16/12 17:33:05 (12 years ago)
Author:
cristiano
Message:

Ticket #2469 - Trocada regex que limpa o css e problemas com envio de email em text/plain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r5743 r5745  
    27592759                $body = mb_ereg_replace('<!--\[', '<!-- [', $params['body']); 
    27602760                $body = str_replace("%nbsp;","&nbsp;",$body); 
    2761                 $body = preg_replace("/\n/"," ",$body); 
    2762                 $body = preg_replace("/\r/","" ,$body); 
     2761                //$body = preg_replace("/\n/"," ",$body); 
     2762                //$body = preg_replace("/\r/","" ,$body); 
    27632763                $body = html_entity_decode ( $body, ENT_QUOTES , 'ISO-8859-1' );         
    27642764            } 
     
    28432843 
    28442844            $mailService->setSubject($subject); 
    2845             $isHTML = ( (array_key_exists('type', $params) && in_array(strtolower($params['type']), array('html', 'plain')) ) ? 
    2846                             strtolower($params['type']) != 'plain' : true ); 
     2845            $isHTML = ( isset($params['type']) && $params['type'] == 'html' )?  true : false; 
    28472846 
    28482847 
Note: See TracChangeset for help on using the changeset viewer.