| @@ 400-409 (lines=10) @@ | ||
| 397 | * |
|
| 398 | * @return string |
|
| 399 | */ |
|
| 400 | public function renderHTML() { |
|
| 401 | if (!$this->footerAdded) { |
|
| 402 | $this->footerAdded = true; |
|
| 403 | if ($this->bodyOpened) { |
|
| 404 | $this->htmlBody .= $this->bodyEnd; |
|
| 405 | } |
|
| 406 | $this->htmlBody .= $this->tail; |
|
| 407 | } |
|
| 408 | return $this->htmlBody; |
|
| 409 | } |
|
| 410 | ||
| 411 | /** |
|
| 412 | * Returns the rendered plain text email as string |
|
| @@ 416-425 (lines=10) @@ | ||
| 413 | * |
|
| 414 | * @return string |
|
| 415 | */ |
|
| 416 | public function renderText() { |
|
| 417 | if (!$this->footerAdded) { |
|
| 418 | $this->footerAdded = true; |
|
| 419 | if ($this->bodyOpened) { |
|
| 420 | $this->htmlBody .= $this->bodyEnd; |
|
| 421 | } |
|
| 422 | $this->htmlBody .= $this->tail; |
|
| 423 | } |
|
| 424 | return $this->plainBody; |
|
| 425 | } |
|
| 426 | } |
|
| 427 | ||