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

index b74cdc1..cff8592 100644 (file)
@@ -294,7 +294,7 @@ class Pman_Core_Mailer {
             $ret['recipents'] =  $this->rcpts;
         }
         
-        if (empty($ret['headers']['To'])) {
+        if (empty($ret['headers']['To']) || !strlen(trim($ret['headers']['To']))) {
             $ret['headers']['To'] = implode(',', $ret['recipents']);
         }