- Timestamp:
- 01/03/12 14:25:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5266 r5299 2585 2585 return "The server denied your request to send a mail, you cannot use this mail address."; 2586 2586 } 2587 ob_start(); 2588 print_r( "=== LOG BEGIN 1===" . "\n" ); 2589 print_r( var_export($params['input_to']) . "\n" ); 2590 print_r( "=== LOG END ===" . "\n" ); 2591 $output = ob_get_clean(); 2592 file_put_contents( '/tmp/log-gustavo2.txt', file_get_contents( '/tmp/log-gustavo2.txt' ) . $output ); 2587 2593 2588 2594 $toaddress = implode(',',$db->getAddrs(explode(',',$params['input_to']))); 2589 2595 $ccaddress = implode(',',$db->getAddrs(explode(',',$params['input_cc']))); 2590 2596 $ccoaddress = implode(',',$db->getAddrs(explode(',',$params['input_cco']))); 2597 2598 ob_start(); 2599 print_r( "=== LOG BEGIN 2===" . "\n" ); 2600 print_r( $toaddress . "\n" ); 2601 print_r( "=== LOG END ===" . "\n" ); 2602 $output = ob_get_clean(); 2603 file_put_contents( '/tmp/log-gustavo2.txt', file_get_contents( '/tmp/log-gustavo2.txt' ) . $output ); 2591 2604 2592 2605 $toaddress = preg_replace('/<\s+/', '<', $toaddress); … … 2598 2611 $ccoaddress = preg_replace('/<\s+/', '<', $ccoaddress); 2599 2612 $ccoaddress = preg_replace('/\s+>/', '>', $ccoaddress); 2613 2614 ob_start(); 2615 print_r( "=== LOG BEGIN 3===" . "\n" ); 2616 print_r( $toaddress . "\n" ); 2617 print_r( "=== LOG END ===" . "\n" ); 2618 $output = ob_get_clean(); 2619 file_put_contents( '/tmp/log-gustavo2.txt', file_get_contents( '/tmp/log-gustavo2.txt' ) . $output ); 2600 2620 2601 2621 $replytoaddress = $params['input_replyto']; … … 2618 2638 $params['input_cco'] = substr($params['input_cco'],0,-1); 2619 2639 2640 2641 ob_start(); 2642 print_r( "=== LOG BEGIN 3===" . "\n" ); 2643 print_r( $toaddress . "\n" ); 2644 print_r( "=== LOG END ===" . "\n" ); 2645 $output = ob_get_clean(); 2646 file_put_contents( '/tmp/log-gustavo2.txt', file_get_contents( '/tmp/log-gustavo2.txt' ) . $output ); 2620 2647 2621 2648 // Valida numero Maximo de Destinatarios … … 2794 2821 //$mailService->addTo($toaddress); 2795 2822 //$mailService->addCc($ccaddress); 2796 $bol = $this->add_recipients('to', $ params['input_to'], $mailService);2823 $bol = $this->add_recipients('to', $toaddress, $mailService); 2797 2824 if(!$bol){ 2798 2825 return $this->parse_error("Invalid Mail:", $toaddress); 2799 2826 } 2800 $bol = $this->add_recipients('cc', $ params['input_cc'], $mailService);2827 $bol = $this->add_recipients('cc', $ccaddress, $mailService); 2801 2828 if(!$bol){ 2802 2829 return $this->parse_error("Invalid Mail:", $ccaddress); … … 2807 2834 { 2808 2835 //$mailService->addBcc($ccoaddress); 2809 $bol = $this->add_recipients('cco', $ params['input_cco'], $mailService);2836 $bol = $this->add_recipients('cco', $ccoaddress, $mailService); 2810 2837 2811 2838 if(!$bol){
Note: See TracChangeset
for help on using the changeset viewer.