Welcome Guest, Not a member yet? Register   Sign In
Newline problem in emails
#1

[eluser]Craig300[/eluser]
Hi all,

I am having a problem getting my plain text email to use the new lines I have put in. Looking at the default values for the email class, it seems that the default for new lines is \n which I have tried putting in. Basically, I have my email stored in a view which is then parsed with values and sent by the email class. But it just won't display new lines.

Any ideas?

Thanks in advance.

Craig
#2

[eluser]Rob Gordijn[/eluser]
how do you specifty the newlines?
remember:

'\n'

is different then

"\n"

within double qoutes the \n is seen/parsed as a new line.
#3

[eluser]Craig300[/eluser]
Sorted. It was a problem in the initial configuration that was forcing it to html even though I specified text.

Cheers for your help.
#4

[eluser]Rob Gordijn[/eluser]
ahh, always the config :-)

NP!
#5

[eluser]Craig300[/eluser]
I thought it would just override that but clearly it wasn't for some reason - whether it be a glitch or just me I don't know :-)
#6

[eluser]InsiteFX[/eluser]
You can create your own email configuration file and save it in application/config

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB