projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bd3ec10
)
Mailer.php
author
Edward
<edward@roojs.com>
Mon, 23 Jul 2018 11:09:14 +0000
(19:09 +0800)
committer
Edward
<edward@roojs.com>
Mon, 23 Jul 2018 11:09:14 +0000
(19:09 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
af9b095
..
3588ee4
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-110,8
+110,6
@@
class Pman_Core_Mailer {
function toData()
{
function toData()
{
- $ts = microtime(true);
-
$templateFile = $this->template;
$args = (array)$this->contents;
$content = clone($this->page);
$templateFile = $this->template;
$args = (array)$this->contents;
$content = clone($this->page);
@@
-158,7
+156,6
@@
class Pman_Core_Mailer {
$htmlbody = false;
$html_tmp_opts = $tmp_opts;
$htmltemplate = new HTML_Template_Flexy( $html_tmp_opts );
$htmlbody = false;
$html_tmp_opts = $tmp_opts;
$htmltemplate = new HTML_Template_Flexy( $html_tmp_opts );
-
if (is_string($htmltemplate->resolvePath('mail/'.$templateFile.'.body.html')) ) {
// then we have a multi-part email...
if (!empty($this->html_locale)) {
if (is_string($htmltemplate->resolvePath('mail/'.$templateFile.'.body.html')) ) {
// then we have a multi-part email...
if (!empty($this->html_locale)) {
@@
-170,9
+167,7
@@
class Pman_Core_Mailer {
$htmlbody = $htmltemplate->bufferedOutputObject($content);
$this->htmlbody = $htmlbody;
$htmlbody = $htmltemplate->bufferedOutputObject($content);
$this->htmlbody = $htmlbody;
- $diff = microtime(true) - $ts;
-
- print_r($diff);exit;
+
// for the html body, we may want to convert the attachments to images.
// var_dump($htmlbody);exit;
// for the html body, we may want to convert the attachments to images.
// var_dump($htmlbody);exit;