From d16d6c2055f119a4df9812548ed13449f6c806f9 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 21 Sep 2006 00:45:12 +0000 Subject: --- system/libraries/Email.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'system/libraries/Email.php') diff --git a/system/libraries/Email.php b/system/libraries/Email.php index abc77a54d..5b991d1fa 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -130,7 +130,7 @@ class CI_Email { * @access public * @return void */ - function clear() + function clear($clear_attachments = FALSE) { $this->_subject = ""; $this->_body = ""; @@ -143,6 +143,13 @@ class CI_Email { $this->_set_header('User-Agent', $this->useragent); $this->_set_header('Date', $this->_set_date()); + + if ($clear_attachments !== FALSE) + { + $this->_attach_name = array(); + $this->_attach_type = array(); + $this->_attach_disp = array(); + } } // END clear() @@ -735,6 +742,11 @@ class CI_Email { */ function _get_alt_message() { + if ($this->alt_message != "") + { + return $this->word_wrap($this->alt_message, '76'); + } + if (eregi( '\', $this->_body, $match)) { $body = $match['1']; -- cgit v1.2.3-24-g4f1b