/[drupal]/contributions/modules/smtp/class.phpmailer.php.2.2.1.patch
ViewVC logotype

Diff of /contributions/modules/smtp/class.phpmailer.php.2.2.1.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Tue Sep 23 22:16:11 2008 UTC revision 1.1.2.1, Tue Sep 23 22:16:11 2008 UTC
# Line 0  Line 1 
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();

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2