Hello,
I have a problem with the emails sent with mail().
They all arrive to the users without linebreaks. I've tried \n but that doesn't work. What is the problem? Server setup?
Scott
For some reason, when using the mail() you must format it like this:
$message = "blah blah blah\n". "blah blah blah\n";
you can't use $message = 'text\n';
Don't know why, but thats the way it is.
Cheers,
Steve
'text\n' will print the \n "text\n" will interpret the \n and print a linebreak.
Single quoted strings don't process variables or escape values.
Double quoted strings do, so use them 🙂