Ignore:
Timestamp:
06/14/12 11:16:27 (12 years ago)
Author:
niltonneto
Message:

Ticket #2507 - Corrigido problema no envio de mensagens com anexos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/mail/SendResource.php

    r6338 r6489  
    2121                        $params['type']                         = 'textplain'; 
    2222 
    23                         $GLOBALS['phpgw']->preferences->read_repository(); 
    24                         $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; 
    25                         $boemailadmin = CreateObject('emailadmin.bo'); 
    26                         $emailadmin_profile = $boemailadmin->getProfileList(); 
    27                         $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); 
    28                         $_SESSION['phpgw_info']['expressomail']['server'] = $GLOBALS['phpgw_info']['server']; 
    29                         $_SESSION['phpgw_info']['expressomail']['user']['email'] = $GLOBALS['phpgw']->preferences->values['email']; 
    30  
    31                         $expressoMail = CreateObject('expressoMail1_2.imap_functions'); 
    32                         $returncode   = $expressoMail->send_mail($params); 
    33  
     23                        $returncode = $this->getImap()->send_mail($params); 
    3424                        if (!$returncode || !(is_array($returncode) && $returncode['success'] == true)) 
    3525                                Errors::runException("MAIL_NOT_SENT"); 
Note: See TracChangeset for help on using the changeset viewer.