Welcome Guest, Not a member yet? Register   Sign In
New line in email text
#1

[eluser]K-C[/eluser]
I am using the email library and I have problem producing new line in the email content. I tried \n and it is showing as n in the email body. PLease advise, thanks.
#2

[eluser]Nillian[/eluser]
Are you using single quotes ( ' ) around your text in PHP? If so, \n will display as a literal string, whereas if you use double quotes ( " ) around the \n it will be interpreted as a newline character. Don't know if this will help you, but hey! Worth a shot Smile
#3

[eluser]K-C[/eluser]
Double quote works. Thanks a lot.




Theme © iAndrew 2016 - Forum software by © MyBB