Welcome Guest, Not a member yet? Register   Sign In
HTML email does not recognize newline
#8

[eluser]jules123[/eluser]
Actually, I have a central email function (defined in a helper) that I use from everywhere to send emails. So it is very easy for me to check the mailtype and do the replacement inside this function.

My problem however is - how do I retrieve the mailtype configuration in this helper function? If I do the following -
$mail_type = $this->config->item('mailtype');
This gives me an empty string instead of giving the actual setting from the config/email.php file.

Now, I can repeat the mailtype setting in my custom config file, as say $config['mailtype_repeat'] = 'html'; and get it that way, but I would hate to do the repetition...


Messages In This Thread
HTML email does not recognize newline - by El Forum - 02-18-2009, 04:28 PM
HTML email does not recognize newline - by El Forum - 02-18-2009, 06:19 PM
HTML email does not recognize newline - by El Forum - 02-18-2009, 06:41 PM
HTML email does not recognize newline - by El Forum - 02-18-2009, 07:08 PM
HTML email does not recognize newline - by El Forum - 02-19-2009, 03:09 AM
HTML email does not recognize newline - by El Forum - 02-19-2009, 09:49 AM
HTML email does not recognize newline - by El Forum - 02-19-2009, 10:02 AM
HTML email does not recognize newline - by El Forum - 02-19-2009, 10:22 AM
HTML email does not recognize newline - by El Forum - 02-19-2009, 10:30 AM
HTML email does not recognize newline - by El Forum - 02-19-2009, 11:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB