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

index 74a857d..d9339c0 100644 (file)
@@ -152,4 +152,37 @@ class Pman_Core_Mailer {
         return $ret;
     }
     
+    function htmlbodytoCID($html)
+    {
+        $dom = new DOMDocument;
+        $dom->loadHTML($html);
+        $imgs= $dom->getElementsByTagName('img');
+        
+        foreach ($imgs as $i=>$img) {
+            $dom->
+            
+            
+        }
+        
+        
+    }
+    function fetchImage($url)
+    {
+        
+        
+        $a = &new HTTP_Request($url);
+        $a->sendRequest();
+        echo $a->getResponseBody();
+        $fn = $this->page->tempName('tmp');
+        
+        $data = file_get_contents($url);
+        
+        
+        
+        
+        
+    }
+    
+    
+    
 }
\ No newline at end of file