[eluser]jules123[/eluser]
Thanks all. TheFuzzy0ne - agree with what you are saying that in an HTML message, the br tag is needed for rendering newlines. After replacing \n by the br tag, HTML emails are appearing fine.
It's just that I interpreted the below to mean that - use \n to define where you want to have newlines and then depending on whether mailtype is text or html, CI will do whatever is necessary...
$config['newline'] = "\n";
$config['mailtype'] = 'html';
Anyway, the reason to have the flexibility to switch between the mailtypes is that we will have multiple installations of the same application with potentially different mailtypes...
So now --- I would like to do the replacement of \n by br by checking what the mailtype is. But I am not sure how to retrieve the configuration from config\email.php. If I do $this->config->item('mailtype'), I get an empty string and not my actual config (text or html). Is there a way to get the mailtype?
And finally, thanks again for all the help! This forum is great!!