Mailer.php
authorAlan Knowles <alan@roojs.com>
Thu, 10 Dec 2015 07:28:38 +0000 (15:28 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 10 Dec 2015 07:28:38 +0000 (15:28 +0800)
Mailer.php

index efd872c..88f651a 100644 (file)
@@ -294,6 +294,9 @@ class Pman_Core_Mailer {
             $ret['recipents'] =  $this->rcpts;
         }
         
+        if (empty($ret['headers']['To']])) {
+            $ret['headers']['To'] = implode(',', $ret['recipents']);
+        }
        
         
         // add bcc if necessary..