From 2b5ea1e0fd8634ff3546e7b6d64705280904180e Mon Sep 17 00:00:00 2001 From: Kevin Andrews Date: Wed, 16 Sep 2015 14:02:26 +0100 Subject: [PATCH] Added method for appending to email body. --- inc/mailer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/mailer.php b/inc/mailer.php index a59a575..e133d33 100644 --- a/inc/mailer.php +++ b/inc/mailer.php @@ -87,6 +87,12 @@ public function setBody($body) $this->emailBody = $filterTags->filter($body); } + public function appendToBody($string) + { + $filterTags = new Zend_Filter_StripTags(); + $this->emailBody .= $filterTags->filter($string) . '
'; + } + public function setReplyTo($replyTo) { $emailValidator = new Zend_Validate_EmailAddress(array('mx' => true, 'deep' => true));