Changeset 8026


Ignore:
Timestamp:
03/18/13 13:51:16 (11 years ago)
Author:
cristiano
Message:

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

Location:
trunk/zpush
Files:
2 edited

Legend:

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

    r7773 r8026  
    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 
  • trunk/zpush/config.php

    r8022 r8026  
    8484    define('LOGFILE', LOGFILEDIR . 'z-push.log'); 
    8585    define('LOGERRORFILE', LOGFILEDIR . 'z-push-error.log'); 
    86     define('LOGLEVEL', LOGLEVEL_WARN); 
     86    define('LOGLEVEL', LOGLEVEL_DEBUG); 
    8787    define('LOGAUTHFAIL', false); 
    8888 
     
    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.