Sent: Thursday, February 15, 2001 12:51 AM
Subject: [PHP] concatenating strings and \n's for mail...
> 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[&quo
* CC Zona <[EMAIL PROTECTED]> [010214 21:21]:
> [restored to bottom-posting, for clarity]
>
> > > > 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"];
>
>
>
> > >
[restored to bottom-posting, for clarity]
> > > 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"];
> > I think you can do it like this:
> >
> > $mailbody="$varname\n$
> > From: Larry Rosenman [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 14, 2001 11:22 AM
> > To: [EMAIL PROTECTED]
> > Subject:[PHP] concatenating strings and \n's for mail...
> >
> > Greetings,
> > I was trying to build u
* Lewis Bergman <[EMAIL PROTECTED]> [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 s
* Christian Cresante <[EMAIL PROTECTED]> [010214 13:27]:
> You need to use "\n" for interpolation.
Tried that too... Didn't work for me...
>
> --- Larry Rosenman <[EMAIL PROTECTED]> wrote:
> > Greetings,
> > I was trying to build up a multi-line body to
> > use with the mail
> > command, usi
You need to use "\n" for interpolation.
--- Larry Rosenman <[EMAIL PROTECTED]> 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
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.4p
8 matches
Mail list logo