Welcome Guest, Not a member yet? Register   Sign In
Newline breaks don't wrok in email class
#1

[eluser]bradleyg[/eluser]
I'm trying to get line breaks in an email but this doesn't seem to work?
Code:
$this->email->message('This is a sentence \n And so is this');

It seems to strip the "\" and leave just the "n". How can I achieve this?

edit: oh. use double qoutes.
#2

[eluser]Armchair Samurai[/eluser]
Try using double quotes ("\n"), not single ('\n').

Edit: Looks like you found that out while I was typing....




Theme © iAndrew 2016 - Forum software by © MyBB