Mailer.php
authorAlan Knowles <alan@roojs.com>
Sat, 3 Nov 2012 04:14:43 +0000 (12:14 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 3 Nov 2012 04:14:43 +0000 (12:14 +0800)
Mailer.php

index 743479d..07db5d2 100644 (file)
@@ -201,6 +201,11 @@ class Pman_Core_Mailer {
             return $mail;
         } 
         $rcpts = $this->rcpts == false ? $email['recipents'] : $this->rcpts;
+        
+        if (!empty($this->contents->bcc) && is_array($this->contents->bcc)) {
+            $rcpts =array_merge($rcpts, $this->contents->bcc);
+        }
+        
         $oe = error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
         $ret = $mail->send($rcpts,$email['headers'],$email['body']);
         error_reporting($oe);