Php Mail won't do linefeeds

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
liderbug
Forum Newbie
Posts: 19
Joined: Tue Jul 23, 2002 2:18 pm

Php Mail won't do linefeeds

Post by liderbug »

I'm using the stock example for sending email from a Php script. Works just fine except for 1 minor problem.
It won't put linefeed/CR's in the outgoing mail. I've tried putting blackslash N, just vanishes. I've tried putting
hard returns in the php code, nope. "Now \n is\n the\n time\n ..." gives "Now is the time " How do I format the
email output?

Tks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

your email server or client might want to see them as \r\n
Post Reply