Skip to content

Commit

Permalink
Added method for appending to email body.
Browse files Browse the repository at this point in the history
  • Loading branch information
Caffe1neAdd1ct committed Sep 16, 2015
1 parent 6f5a214 commit 2b5ea1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inc/mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) . '<br />';
}

public function setReplyTo($replyTo)
{
$emailValidator = new Zend_Validate_EmailAddress(array('mx' => true, 'deep' => true));
Expand Down

0 comments on commit 2b5ea1e

Please sign in to comment.