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

index 50abc39..45c8282 100644 (file)
@@ -178,12 +178,10 @@ class Pman_Core_Mailer {
             mkdir(dirname($cache),0666, true);
         }
         
+        
         $a = &new HTTP_Request($url);
         $a->sendRequest();
-        echo $a->getResponseBody();
-        $fn = $this->page->tempName('tmp');
-        
-        $data = file_get_contents($url);
+        file_put_contents($cache .'.data', base64_encode( $a->getResponseBody()));