+1  A: 

You are setting the content type as text/html. Try sending a <br/>. HTML is whitespace-agnostic and uses the break tag to force a new line.

If you don't want the message to be HTML, don't mark it as such.

Borealid
Don't get involved in asia?
Michael Robinson
@Michael Robinson: Especially not in land wars.
Borealid
Yes, I've tried the <br> and <br/> (<br> disapears but doesn't add a line break and <br/> shows up as > in my message)
Matt
@Matt: Try a plain-text email, then.
Borealid
I did but still did not get the new line.
Matt
A: 

'\n' will print two characters: \ and n

"\n" will print a line feed character (0x0A)

anonymous
made sure code had "\r\n" and not '\r\n' as I had in my example. Still no line.Could be my phone.
Matt
A: 

What @Borealid said, or if you aren't actually sending HTML, which I doubt you would in an SMS, you can change the header to Content-Type: text/plain;

Also, as mentioned, you are giving a literal \n and \r, not an escape sequence. Escaped sequences need to be in double quotes.

sberry2A
Changed it to "" and still no new line. Also changed content type to text/plain. Odd.$body .= "\r\n City:".$City."\r\n";$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";
Matt
A: 

Just a little bit of code helps the medicine go down. I forgot an important little piece of code:

Content-Transfer-Encoding: 7bit

You need the code above added to your header. HTH.

Matt