Ticket #585: kohana_email.diff

File kohana_email.diff, 0.9 kB (added by aatdark, 6 months ago)

patch - for email function bcc

  • email.php

     
    113113         * @param   boolean       send email as HTML 
    114114         * @return  integer       number of emails sent 
    115115         */ 
    116         public static function send($to, $from, $subject, $message, $html = FALSE) 
     116        public static function send($to, $from, $subject, $message, $html = FALSE,$bcc='') 
    117117        { 
    118118                // Connect to SwiftMailer 
    119119                (self::$mail === NULL) and email::connect(); 
     
    123123 
    124124                // Create the message 
    125125                $message = new Swift_Message($subject, $message, $html, '8bit', 'utf-8'); 
    126  
     126                if($bcc!='') 
     127                { 
     128                   $message->setBcc($bcc);   
     129                }  
    127130                // Make a personalized To: address 
    128131                is_object($to) or $to = is_array($to) ? new Swift_Address($to[0], $to[1]) : new Swift_Address($to); 
    129132