projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
afaa2b4
)
Mailer.php
author
edward
<edward@roojs.com>
Mon, 26 Mar 2018 05:38:23 +0000
(13:38 +0800)
committer
edward
<edward@roojs.com>
Mon, 26 Mar 2018 05:38:23 +0000
(13:38 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
9dca76d
..
a1ab4f8
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-77,7
+77,7
@@
class Pman_Core_Mailer {
var $html_locale = false; // eg. 'en' or 'zh_HK'
var $images = array(); // generated list of cid images for sending
var $attachments = false;
var $html_locale = false; // eg. 'en' or 'zh_HK'
var $images = array(); // generated list of cid images for sending
var $attachments = false;
- var $css_inline = false; //
not supported
+ var $css_inline = false; //
put the css into the html
var $css_embed = false; // put the css tags into the body.
var $mail_method = 'SMTP';
var $css_embed = false; // put the css tags into the body.
var $mail_method = 'SMTP';
@@
-175,10
+175,15
@@
class Pman_Core_Mailer {
if ($this->replaceImages) {
$htmlbody = $this->htmlbodytoCID($htmlbody);
}
if ($this->replaceImages) {
$htmlbody = $this->htmlbodytoCID($htmlbody);
}
+
if ($this->css_embed) {
if ($this->css_embed) {
- $htmlbody = $this->htmlbodyCssEmbed($htmlbody);
-
+ $htmlbody = $this->htmlbodyCssEmbed($htmlbody);
+ }
+
+ if ($this->css_inline) {
+ $htmlbody = $this->htmlbodyinlineCss($htmlbody);
}
}
+
}
$tmp_opts['nonHTML'] = true;
}
$tmp_opts['nonHTML'] = true;