From 7c53be42a74b103774729281aef09ad505f3b611 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 22 Apr 2008 12:02:43 +0000 Subject: Added the ability to set CRLF settings via config in the Email class. Added SVN commit number to changelog Fixed more guide typos and examples --- system/libraries/Email.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'system/libraries/Email.php') diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 189678742..19121c56b 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -490,6 +490,26 @@ class CI_Email { // -------------------------------------------------------------------- + /** + * Set CRLF + * + * @access public + * @param string + * @return void + */ + function set_crlf($crlf = "\n") + { + if ($crlf != "\n" AND $crlf != "\r\n" AND $crlf != "\r") + { + $this->crlf = "\n"; + return; + } + + $this->crlf = $crlf; + } + + // -------------------------------------------------------------------- + /** * Set Message Boundary * -- cgit v1.2.3-24-g4f1b