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

[eluser]TheFuzzy0ne[/eluser]
I agree, the $config['newline'] part may be misleading. To clear it up, that newline character is used for wordwrapping the text. Smile

There may be a better way to achieve what you want. I would suggest having two views, one for plain text, and one for HTML. You can then grab the output of the appropriate view depending on which mail type you want to use.
Code:
if ($mail_type == "html")
{
    $body = $this->load->view('email_html', $data, TRUE);
}
else
{
    $body = $this->load->view('email_plaintext', $data, TRUE);
}


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