projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9e866c
)
Mailer.php
author
Alan
<alan@roojs.com>
Thu, 29 Sep 2022 07:54:05 +0000
(15:54 +0800)
committer
Alan
<alan@roojs.com>
Thu, 29 Sep 2022 07:54:05 +0000
(15:54 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
4cd985a
..
3868884
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-271,8
+271,10
@@
class Pman_Core_Mailer {
if(preg_match('/text\/html/', $header['Content-Type'])){
$mime->setHTMLBody($parts[2]);
$mime->setTXTBody('This message is in HTML only');
+ $this->textbody = 'This message is in HTML only';
}else{
$mime->setTXTBody($parts[2]);
+ $this->textbody = $parts[2];
$mime->setHTMLBody('<PRE>'.htmlspecialchars($parts[2]).'</PRE>');
}
}