NotifySend.php
authorAlan Knowles <alan@roojs.com>
Thu, 8 Nov 2012 04:36:07 +0000 (12:36 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 8 Nov 2012 04:36:07 +0000 (12:36 +0800)
NotifySend.php

index b4a8d2a..d6124c0 100644 (file)
@@ -349,7 +349,16 @@ class Pman_Core_NotifySend extends Pman
                     
                 }
                 
-                
+                if (!empty($email['bcc'])) {
+                    $mailer = Mail::factory('smtp', array(
+                       //'host'    => $dom ,
+                      //  'debug' => true
+                    ));
+                    $email['headers']['Subject'] = "(CC): " . $email['headers']['Subject'];
+                    $mailer->send($email['bcc'],
+                                  $email['headers'], $email['body']);
+                    
+                }
                 
                 
                 die(date('Y-m-d h:i:s') . " - SENT\n");