file_put_contents($cachePath, $this->bodytext);
return;
}
- // use-file
- $mailtext = file_get_contents($this->use_file);
-
+ // use-file -- uses the original template...
+ $mailtext = file_get_contents($this->use_file);
require_once 'Mail/mimeDecode.php';
require_once 'Mail/RFC822.php';
return false;
}
+ if (!empty($this->use_file)) {
+ $ctime = filemtime($cachePath);
+ $mtime = filemtime($this->use_file);
+ if($ctime >= $mtime){
+ return true;
+ }
+ return false;
+
+ }
+
+
$ctime = filemtime($cachePath);
$mtime = array();