Composition
Composition
- public function addRawSection($text) — Add a raw block of text to the email. This will be rendered as-is.
- public function addTextSection($header, $section) — Add a block of text with a section header. This is rendered like this:
- public function addAttachment($attachment) — Add an attachment.
Rendering
Rendering
- public function render() — Render the email body.
- public function getAttachments() — Retrieve attachments.
- private function indent($text) — Indent a block of text for rendering under a section heading.
Other Methods
Other Methods
- public function getViewer()
- public function setViewer($viewer)
- public function setContextObject($context_object)
- public function getContextObject()
- public function addRemarkupSection($header, $text)
- public function addRawPlaintextSection($text)
- public function addRawHTMLSection($html)
- public function addPlaintextSection($header, $text, $indent)
- public function addHTMLSection($header, $html_fragment)
- public function addLinkSection($header, $link)
- public function renderHTML()
- private function newMarkupEngine()