diff options
author | Cory <ckdarby@gmail.com> | 2012-06-06 18:46:40 +0200 |
---|---|---|
committer | Cory <ckdarby@gmail.com> | 2012-06-06 18:46:40 +0200 |
commit | 61fb9c1596ea220a0a8106160c5c68f9343ff9df (patch) | |
tree | 136126cc057bc58000f020990e32685c89adf399 /user_guide_src/source/libraries | |
parent | 037944e6c2083ce82ef5785947fddbf671362006 (diff) | |
parent | 47b673324f06236264ca64f8c3155aab51762609 (diff) |
Merge branch 'develop' of https://github.com/EllisLab/CodeIgniter into issue_1374
Conflicts:
user_guide_src/source/changelog.rst
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r-- | user_guide_src/source/libraries/email.rst | 8 | ||||
-rw-r--r-- | user_guide_src/source/libraries/output.rst | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/user_guide_src/source/libraries/email.rst b/user_guide_src/source/libraries/email.rst index daf000907..f99eb91df 100644 --- a/user_guide_src/source/libraries/email.rst +++ b/user_guide_src/source/libraries/email.rst @@ -182,6 +182,14 @@ formatting which is added to the header string for people who do not accept HTML email. If you do not set your own message CodeIgniter will extract the message from your HTML email and strip the tags. +$this->email->set_header() +----------------------- + +Appends additional headers to the e-mail:: + + $this->email->set_header('Header1', 'Value1'); + $this->email->set_header('Header2', 'Value2'); + $this->email->clear() --------------------- diff --git a/user_guide_src/source/libraries/output.rst b/user_guide_src/source/libraries/output.rst index baceaae7b..0472d14cf 100644 --- a/user_guide_src/source/libraries/output.rst +++ b/user_guide_src/source/libraries/output.rst @@ -49,6 +49,10 @@ data, JPEG's, XML, etc easily. .. important:: Make sure any non-mime string you pass to this method exists in config/mimes.php or it will have no effect. +You can also set the character set of the document, by passing a second argument:: + + $this->output->set_content_type('css', 'utf-8'); + $this->output->get_content_type(); ========================================== |