Ticket #585: kohana_email.diff
| File kohana_email.diff, 0.9 kB (added by aatdark, 6 months ago) |
|---|
-
email.php
113 113 * @param boolean send email as HTML 114 114 * @return integer number of emails sent 115 115 */ 116 public static function send($to, $from, $subject, $message, $html = FALSE )116 public static function send($to, $from, $subject, $message, $html = FALSE,$bcc='') 117 117 { 118 118 // Connect to SwiftMailer 119 119 (self::$mail === NULL) and email::connect(); … … 123 123 124 124 // Create the message 125 125 $message = new Swift_Message($subject, $message, $html, '8bit', 'utf-8'); 126 126 if($bcc!='') 127 { 128 $message->setBcc($bcc); 129 } 127 130 // Make a personalized To: address 128 131 is_object($to) or $to = is_array($to) ? new Swift_Address($to[0], $to[1]) : new Swift_Address($to); 129 132
