Changeset 8033


Ignore:
Timestamp:
03/18/13 17:26:45 (6 years ago)
Author:
douglas
Message:

Ticket #3395 - Envio de e-mail através do Z-push em servidor SMTP distribuido

Location:
branches/2.5/zpush
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/zpush/backend/expresso/providers/imapProvider.php

    r7773 r8033  
    497497            if (!empty($bccaddr)) $headers .= "\nBcc: $bccaddr"; 
    498498            // changed by mku ZP-330 
    499             $send =  @mail ( $toaddr, $message->headers["subject"], $body, $headers, $envelopefrom ); 
     499  
     500            $mail_object =& Mail::factory("smtp", $GLOBALS['config']['SMTP']);  
     501            $send = $mail_object->send($toaddr, $message->headers , $headers ."\r\n" . $body);  
     502          //  $send =  @mail ( $toaddr, $message->headers["subject"], $body, $headers, $envelopefrom );  
    500503        } 
    501504 
  • branches/2.5/zpush/config.php

    r8032 r8033  
    284284    $row = pg_fetch_assoc( $rs ); 
    285285 
     286    $smtpConfig = parse_ini_file(EXPRESSO_PATH . '/prototype/config/SMTP.srv' , true );  
     287    $GLOBALS['config']['SMTP'] = $smtpConfig['config'];  
     288  
    286289    // ************************ 
    287290    //  BackendIMAP settings 
Note: See TracChangeset for help on using the changeset viewer.