Changeset 1109


Ignore:
Timestamp:
07/10/09 15:23:22 (15 years ago)
Author:
niltonneto
Message:

Ticket #475 - Correção da implementação do item Sugestões.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/help/enviasugestao.php

    r1101 r1109  
    2121include('../header.inc.php'); 
    2222if($_POST){ 
     23         
    2324        $params['input_to'] = $GLOBALS['phpgw_info']['server']['sugestoes_email_to']; 
    2425        $params['input_cc'] = $GLOBALS['phpgw_info']['server']['sugestoes_email_cc']; 
     
    2627        $params['input_subject'] =      lang("Suggestions"); 
    2728        $params['body'] = $_POST['body']; 
     29        $GLOBALS['phpgw']->preferences->read_repository(); 
     30        $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; 
     31        $boemailadmin   = CreateObject('emailadmin.bo'); 
     32        $emailadmin_profile = $boemailadmin->getProfileList(); 
     33        $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); 
     34        $_SESSION['phpgw_info']['expressomail']['server'] = $GLOBALS['phpgw_info']['server'];            
     35        $_SESSION['phpgw_info']['expressomail']['user']['email'] = $GLOBALS['phpgw']->preferences->values['email'];                                                                      
    2836        $expressoMail = CreateObject('expressoMail1_2.imap_functions');                  
    2937        $returncode = $expressoMail->send_mail($params); 
Note: See TracChangeset for help on using the changeset viewer.