Re: concatenating strings and \n's for mail...
| From: | Christian Cresante | Date: | Wed, 14 Feb 2001 19:27:40 +0000 |
| Subject: | Re: concatenating strings and \n's for mail... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39725@lists.php.net to get a copy of this message | ||
You need to use "\n" for interpolation.
--- Larry Rosenman <ler@lerctr.org> 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?
>
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/