Thanks for the reply, however, that will not work.  The only line breaks you
may get with that are those layed out in a text box or from your mail
client. What if I have other variables that need to be put in the body of
the email.

i.e.

Age: 16
Height: 168
Weight: 120
etc
etc
etc.

These are variables that the user inputs into a form and need to be on a
seperate line, so if I did $message = "$age, $weight, $height, etc." they
would appear on the same line - I need to have them on separate lines.

----- Original Message -----
From: "Kyle Gibson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 10:54 PM
Subject: [PHP] Re: More mail() questions.


> > I am  trying to get the message portion of the email to have line
breaks,
> > but  whatever I do it displays on one line. This is what I have.
> >
> > $message = "1st Line\n";
> > $message .= "2nd Line\n";
> > $message .= "\n";
> > $message .= "3rd Line\n";
> > $message .= "\n";
> > $message .= "4th Line\n";
> >
> > mail ("", $subject, $message, $headers);
> >
> > TIA
>
>
> As far as I've encountered, you can simply do the following:
>
> <?
>
> $message = "
> This is the message I
> wish to send with linebreaks...
>
>
>
> all the way down here.
> ";
>
>
> mail ("", $subject, $message, $headers);
>
> ?>
>
>
>
> --
> Kyle Gibson
> admin(at)frozenonline.com
> http://www.frozenonline.com/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to