summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-04-22 14:02:43 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-04-22 14:02:43 +0200
commit7c53be42a74b103774729281aef09ad505f3b611 (patch)
treedc6dda54c14313e4aa8608f4ec87b85df353d887 /system/libraries
parent17a711ad54290dcaa649cadd72c694f46cf1098f (diff)
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
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Email.php20
1 files changed, 20 insertions, 0 deletions
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
@@ -491,6 +491,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
*
* @access private