Mailer.php
authorAlan Knowles <alan@roojs.com>
Wed, 22 Aug 2012 03:23:31 +0000 (11:23 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 22 Aug 2012 03:23:31 +0000 (11:23 +0800)
Mailer.php

index e69de29..da863a1 100644 (file)
@@ -0,0 +1,42 @@
+<?php
+
+/**
+ *
+ *  code that used to be in Pman (sendTemplate / emailTemplate)
+ *
+ *  usage:
+ *
+ *
+ *  $x= new Pman_Core_Mailer($opts)
+ *
+ *  $opts[
+       page => 
+       contents
+       template
+       replaceImages => true|false
+    ]
+ *
+ *  $x->asData(); // returns data needed for notify?? - notify should really
+ *                  // just use this to pass around later..
+ *
+ *  $x->send();
+ *
+ */
+
+class Pman_Core_Mailer {
+    
+    var $page           = false;
+    var $contents       = false;
+    var $template       = false;
+    var $replaceImages  = false;
+    
+    function Pman_Core_Mailer($args) {
+        foreach($args as $k=>$v) {
+            // a bit trusting..
+            $this->$k =  $v;
+        }
+    }
+    
+    
+    
+}
\ No newline at end of file