| @@ 382-391 (lines=10) @@ | ||
| 379 | * |
|
| 380 | * @return string |
|
| 381 | */ |
|
| 382 | public function renderHTML() { |
|
| 383 | if (!$this->footerAdded) { |
|
| 384 | $this->footerAdded = true; |
|
| 385 | if ($this->bodyOpened) { |
|
| 386 | $this->htmlBody .= $this->bodyEnd; |
|
| 387 | } |
|
| 388 | $this->htmlBody .= $this->tail; |
|
| 389 | } |
|
| 390 | return $this->htmlBody; |
|
| 391 | } |
|
| 392 | ||
| 393 | /** |
|
| 394 | * Returns the rendered plain text email as string |
|
| @@ 398-407 (lines=10) @@ | ||
| 395 | * |
|
| 396 | * @return string |
|
| 397 | */ |
|
| 398 | public function renderText() { |
|
| 399 | if (!$this->footerAdded) { |
|
| 400 | $this->footerAdded = true; |
|
| 401 | if ($this->bodyOpened) { |
|
| 402 | $this->htmlBody .= $this->bodyEnd; |
|
| 403 | } |
|
| 404 | $this->htmlBody .= $this->tail; |
|
| 405 | } |
|
| 406 | return $this->plainBody; |
|
| 407 | } |
|
| 408 | } |
|
| 409 | ||