| 1 |
|
--- class.phpmailer.php.orig 2008-09-23 12:27:43.000000000 -0700 |
| 2 |
|
+++ class.phpmailer.php 2008-09-23 12:31:11.000000000 -0700 |
| 3 |
|
@@ -273,9 +273,9 @@ |
| 4 |
|
*/ |
| 5 |
|
public function IsHTML($bool) { |
| 6 |
|
if($bool == true) { |
| 7 |
|
- $this->ContentType = 'text/html'; |
| 8 |
|
+ $this->ContentType = $this->is_html = 'text/html'; |
| 9 |
|
} else { |
| 10 |
|
- $this->ContentType = 'text/plain'; |
| 11 |
|
+ $this->ContentType = $this->is_html = 'text/plain'; |
| 12 |
|
} |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
@@ -991,7 +991,12 @@ |
| 16 |
|
$result .= $this->EncodeString($this->Body, $this->Encoding); |
| 17 |
|
break; |
| 18 |
|
case 'attachments': |
| 19 |
|
- $result .= $this->GetBoundary($this->boundary[1], '', '', ''); |
| 20 |
|
+ if ($this->is_html) { |
| 21 |
|
+ $result .= $this->GetBoundary($this->boundary[1], '', $this->is_html, ''); |
| 22 |
|
+ } |
| 23 |
|
+ else { |
| 24 |
|
+ $result .= $this->GetBoundary($this->boundary[1], '', '', ''); |
| 25 |
|
+ } |
| 26 |
|
$result .= $this->EncodeString($this->Body, $this->Encoding); |
| 27 |
|
$result .= $this->LE; |
| 28 |
|
$result .= $this->AttachAll(); |