Import/Core_email.php
authorAlan Knowles <alan@roojs.com>
Tue, 6 Oct 2015 06:03:03 +0000 (14:03 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 6 Oct 2015 06:03:03 +0000 (14:03 +0800)
Import/Core_email.php

index 171984f..ed08c17 100644 (file)
@@ -67,7 +67,13 @@ class Pman_Core_Import_Core_email extends Pman
         }
         
         $mailtext = file_get_contents($opts['file']);
-
+        
+        if (!empty($opts['master'])) {
+            $body = $mailtext;
+            $mailtext = file_get_contents($opts['master']);
+            $mailtext = str_replace('{outputBody():h}', $body, $mailtext);
+        }
+        
         require_once 'Mail/mimeDecode.php';
         require_once 'Mail/RFC822.php';