Skip to content

Commit

Permalink
Added alt body method, fixed docblocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Sep 19, 2011
1 parent 0a774d6 commit 6685c65
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions classes/email/driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ public function set_config($key, $value)
}

/**
* Sets the body, and generates the alt body if specified. Which will also set it to a html mail.
* Sets the body
*
* @param string $body the message body
* @param bool $generate_alt whether to generate the alt body, will set is html to true
* @return object $this
*/
public function body($body)
Expand All @@ -131,6 +130,19 @@ public function body($body)
return $this;
}

/**
* Sets the alt body
*
* @param string $alt_body the message alt body
* @return object $this
*/
public function alt_body($alt_body)
{
$this->alt_body = (string) $alt_body;

return $this;
}

/**
* Sets the html body and optionally a generated alt body.
*
Expand Down

0 comments on commit 6685c65

Please sign in to comment.