| @@ 487-496 (lines=10) @@ | ||
| 484 | * |
|
| 485 | * @return string |
|
| 486 | */ |
|
| 487 | public function renderHTML() { |
|
| 488 | if (!$this->footerAdded) { |
|
| 489 | $this->footerAdded = true; |
|
| 490 | if ($this->bodyOpened) { |
|
| 491 | $this->htmlBody .= $this->bodyEnd; |
|
| 492 | } |
|
| 493 | $this->htmlBody .= $this->tail; |
|
| 494 | } |
|
| 495 | return $this->htmlBody; |
|
| 496 | } |
|
| 497 | ||
| 498 | /** |
|
| 499 | * Returns the rendered plain text email as string |
|
| @@ 503-512 (lines=10) @@ | ||
| 500 | * |
|
| 501 | * @return string |
|
| 502 | */ |
|
| 503 | public function renderText() { |
|
| 504 | if (!$this->footerAdded) { |
|
| 505 | $this->footerAdded = true; |
|
| 506 | if ($this->bodyOpened) { |
|
| 507 | $this->htmlBody .= $this->bodyEnd; |
|
| 508 | } |
|
| 509 | $this->htmlBody .= $this->tail; |
|
| 510 | } |
|
| 511 | return $this->plainBody; |
|
| 512 | } |
|
| 513 | } |
|
| 514 | ||