> 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
> et
> Tried that, but no go. I did figure it out however. Putting the following
at
> the bottom of the $header seemed to work.
>
> $headers .= "--=MIME_BOUNDRY_message_parts\n";
> $headers .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
> $headers .= "Content-Transf
$headers .= "Content-Transfer-Encoding: quoted-printable\n";
- Original Message -
From: "Ewout de Boer" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 4:23 AM
Subject: Re: [PHP] Re: More mail() ques
Try '\r\n' instead of '\n'
regards,
Ewout de Boer
- Original Message -
From: "Beauford.2002" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Kyle Gibson" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 10:17 AM
Subject: Re:
>
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.
> >
> &
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,
6 matches
Mail list logo