mailtype option is ignored, but only when inside config file |
[eluser]sparky672[/eluser]
Case 1 - working In Controller: Code: $this->load->library('email'); Output: Code: Line one. Properly Rendered: Code: Line one. ------------ AS per the Email Class documentation: "If you prefer not to set preferences using the above method, you can instead put them into a config file. Simply create a new file called the 'email.php', add the $config array in that file. Then save the file at 'config/email.php' and it will be used automatically. You will NOT need to use the '$this->email->initialize()' function if you save your preferences in a config file." ------------ Case 2 - broken In "config/email.php": Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); In Controller: Code: $this->load->library('email'); Output: Code: This is a multi-part message in MIME format. Improperly Rendered: Code: Line one.Line two.Line three. -------- Case #2 is broken. The "mailtype=text" option is totally ignored, and a multi-part MIME message is generated instead of only a plain text message as in Case #1. The only difference between Case #1 and Case #2 is the external "email.php" config file. So why is the Case #2 output different? |
Messages In This Thread |
mailtype option is ignored, but only when inside config file - by El Forum - 03-24-2013, 05:58 PM
mailtype option is ignored, but only when inside config file - by El Forum - 03-24-2013, 06:06 PM
|