concatenating strings and \n's for mail...

From: Date: Wed, 14 Feb 2001 19:21:45 +0000
Subject: concatenating strings and \n's for mail...
Groups: php.general 
Request: Send a blank email to php-general+get-39724@lists.php.net to get a copy of this message
Greetings, I was trying to build up a multi-line body to use with the mail command, using code similar to: $mailbody = $mailbody . '\n' . $HTTP_POST_VARS["somefield"]; when I sent the mail, the \n showed up, not as a new line, but a literal \n. How do I fix this? This is with 4.0.4pl1. LER -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

« previous php.general (#39724) next »