  |
25 | 25 | | $_boundary, |
| |
26 | 26 | | $_headers = array('X-Mailer' => 'osCommerce'), |
| |
27 | 27 | | $_body, |
  |
28 | | - | $_body_processed, |
|
29 | 28 | | $_content_transfer_encoding = '7bit', |
| |
30 | 29 | | $_charset = 'iso-8859-1'; |
| |
31 | 30 | | |
| |
|
|
 |
… |
|
78 | 77 | | |
| |
79 | 78 | | function setBodyPlain($body) { |
| |
80 | 79 | | $this->_body_plain = wordwrap($body, 78, "\r\n", false); |
  |
81 | | - | $this->_body_processed = null; |
| |
| 80 | + | $this->_body = null; |
|
82 | 81 | | } |
| |
83 | 82 | | |
| |
84 | 83 | | function setBodyHTML($body) { |
| |
85 | 84 | | $this->_body_html = wordwrap($body, 998, "\r\n", true); |
  |
86 | | - | $this->_body_processed = null; |
| |
| 85 | + | $this->_body = null; |
|
87 | 86 | | } |
| |
88 | 87 | | |
| |
89 | 88 | | function setContentTransferEncoding($encoding) { |
| |
|
|
 |
… |
|
138 | 137 | | } |
| |
139 | 138 | | |
| |
140 | 139 | | function send() { |
  |
141 | | - | if ( empty($this->_body_processed) ) { |
| |
| 140 | + | if ( empty($this->_body) ) { |
|
142 | 141 | | if ( !empty($this->_body_plain) && !empty($this->_body_html) ) { |
| |
143 | 142 | | $this->_boundary = '=_____MULTIPART_MIXED_BOUNDARY____'; |
| |
144 | 143 | | $this->_related_boundary = '=_____MULTIPART_RELATED_BOUNDARY____'; |
| |
|
|
 |
… |
|
259 | 258 | | } else { |
| |
260 | 259 | | $this->_body = $this->_body_plain . "\n"; |
| |
261 | 260 | | } |
  |
262 | | - | |
| |
263 | | - | $this->_body_processed = $this->_body; |
  |
264 | 261 | | } |
| |
265 | 262 | | |
| |
266 | 263 | | $to_email_addresses = array(); |