Log in

View Full Version : Send mail and line feeds


Jolten
07-28-2005, 02:04 PM
I'm writing a mail form and I'm having a bit of trouble.

The information is being sent but I can't get line feeds to show themselves.

I've got this code:

$msg = $name .'/r/n'. $address .'/r/n'. $ip .'/r/n'. $message; //combine info for message
mail($recipent, $subject, $msg, $headers); //Send the email


The mail is being sent and it's all correct except the /r/n for line feeds is being sent as is. it's not being translated into line feeds so the message is basically one big line of text with/r/n in a few places.

What am I missing?

Thanks.

Marco van Herwaarden
07-28-2005, 02:28 PM
Try \r\n :D

Jolten
07-28-2005, 02:29 PM
ahhh.. stupid backward slashes.. thanks Marco