projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3234ee2
)
Mailer.php
author
Chris
<chris@roojs.com>
Thu, 14 Nov 2013 10:45:48 +0000
(18:45 +0800)
committer
Chris
<chris@roojs.com>
Thu, 14 Nov 2013 10:45:48 +0000
(18:45 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
73c3ebe
..
0bee2fd
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-217,12
+217,12
@@
class Pman_Core_Mailer {
print_r($parts);exit;
if($this->attachments){
//if got a attachments
- $contentType = 'Content-Type: text/plain; charset=utf-8';
+
if (isset($parts[1]['Content-Type'])) {
- $contentType = $parts[1]['Content-Type'];
+
unset($parts[1]['Content-Type']);
}
-
+ $mime->setTXTBody($parts[2]);
foreach($this->attachments as $attch){
$mine->addAttachment(
$attch['file'],