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

From: Date: Wed, 14 Feb 2001 19:51:52 +0000
Subject: Re: concatenating strings and \n's for mail...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-39730@lists.php.net to get a copy of this message
* Lewis Bergman <lbergman@abi.tconline.net> [010214 13:50]: > On Wed, 14 Feb 2001, you wrote: > > 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? > Did you try . "\r\n" . ? I use it though in many places just as you have > "\n" Nope, will tonight though. > ... > > -- > Lewis Bergman > Texas Communications > 4309 Maple St. > Abilene, TX 79602 > 915-695-6962 -- 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 (#39730) next »