$ret = $r->toData();
- $person = $contents['person'];
-
- if(!is_object($person)){
-
- }
-
$images = file_get_contents(session_save_path() . '/email-cache-' . getenv('APACHE_RUN_USER') . '/mail/' . $this->tableName() . '-' . $this->id . '-images.txt');
$ret['body'] = str_replace('%Images%', $images, $ret['body']);
))."\n");
-
-
// note the extra space to finish the last line..
fwrite($fh, " " . "
Content-Type: multipart/alternative; boundary=alt-{$random_hash}
$imageCache = session_save_path() . '/email-cache-' . getenv('APACHE_RUN_USER') . '/mail/' . $this->tableName() . '-' . $this->id . '-images.txt';
$ids = $this->attachmentIds();
- print_r($ids);exit;
+
//$this->jerr(print_r($ids,true));
return '"' . addslashes($this->from_name) . '" <' . $this->from_email. '>' ;
}
+ function formatDate($dt, $format = 'd/M/Y')
+ {
+ return date($format, strtotime($dt));
+ }
+
}