Ignore:
Timestamp:
09/21/12 17:34:20 (12 years ago)
Author:
cristiano
Message:

Ticket #3126 - Mensagens encaminhadas ficando em branco

File:
1 edited

Legend:

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

    r7268 r7276  
    26492649        } 
    26502650         
    2651         function send_mail($params) {  
     2651        function send_mail($params) { 
    26522652            require_once dirname(__FILE__) . '/../../services/class.servicelocator.php'; 
    26532653            require_once dirname(__FILE__) . '/../../prototype/api/controller.php'; 
     
    26742674            } 
    26752675 
     2676 
     2677            if (substr($params['input_to'], -1) == ',') 
     2678                $params['input_to'] = substr($params['input_to'], 0, -1); 
     2679 
     2680            if (substr($params['input_cc'], -1) == ',') 
     2681                $params['input_cc'] = substr($params['input_cc'], 0, -1); 
     2682 
     2683            if (substr($params['input_cco'], -1) == ',') 
     2684                $params['input_cco'] = substr($params['input_cco'], 0, -1); 
     2685 
    26762686            /*Wraps the text dividing the emails as from ">,"*/ 
    26772687            $toaddress = $db->getAddrs(preg_split('/>,/',preg_replace('/>,/', '>>,', $params['input_to']))); 
     
    27102720            $message_attachments = $params['message_attachments']; 
    27112721 
    2712             if (substr($params['input_to'], -1) == ',') 
    2713                 $params['input_to'] = substr($params['input_to'], 0, -1); 
    2714  
    2715             if (substr($params['input_cc'], -1) == ',') 
    2716                 $params['input_cc'] = substr($params['input_cc'], 0, -1); 
    2717  
    2718             if (substr($params['input_cco'], -1) == ',') 
    2719                 $params['input_cco'] = substr($params['input_cco'], 0, -1); 
     2722 
    27202723 
    27212724            // Valida numero Maximo de Destinatarios  
     
    28342837            } else { 
    28352838                //Compatibilização com Outlook, ao encaminhar a mensagem 
    2836                 $body = mb_ereg_replace('<!--\[', '<!-- [', $params['body']);                            
     2839                $body = mb_ereg_replace('<!--\[', '<!-- [', base64_decode($params['body'])); 
    28372840                                $body = str_replace("&lt;","&yzwkx;",$body); //Alterar as Entities padrão das tags < > para compatibilizar com o Expresso 
    28382841                                $body = str_replace("&gt;","&xzwky;",$body); 
     
    30163019 
    30173020            $attachment = json_decode($params['attachments'],TRUE); 
    3018  
     3021            $message_size_total = 0; 
    30193022            foreach ($attachment as &$value)  
    30203023            { 
Note: See TracChangeset for help on using the changeset viewer.