Ok i know that \n will create a new line in an email but it doesnt work. It all comes out in one big line.
Can you post your code?
Cgraz
nm im a dumb ass... i just found out you can only use \n = new line when combined with double quote strings not single quotes. thanks anyway!
hum... that didnt work...
example email body message
$message = "Dear John Doe,\n\nYou just won 1,000,000!!";
Shoud look like:
Dear John Doe,
You just won 1,000,000!!
But instead it all comes out in one line.
Try
$message = "Dear John Doe,\n\n"; $message .= "You just won 1,000,000!!";
I've never had a problem doing ti that way.
According to my PHP book, e-mail clients require that you use a CR LF pair in e-mail messages to create a line break. So your message should look like this:
"Dear John\r\nHow are you?\r\nSee you soon\r\nJoe."
A simple \n will only create a new line in the browser, not in the e-mail client.
Hope this helps
Norman
I use \r\n for headers, but have never had a problem with email using \n. Maybe different email clients display differently.
Ah well, doesn't hurt to give it a shot, but \n works no problem for me.
Do you send your e-email using html/text as Content-Type ? If yes, you must put a <BR /> before the \r\n. Don't forget that in HTML, an "enter" will not display an "enter". It will only display an "enter" if you write some tags such as <BR /> or <P>. Web and Mail are exactly the same concerning HTML.
Ok ya i guess my problem was i was using the text/html content-type so i use <br> to make an enter. Thanks everyone!