"Bill Freeburg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> how do I add newline commands in the middle of a text string?
>
> I'm sending an email with the function
>  mail($sendto,$subject,$message,$headers)
>
> The message is
> $message = "My name is " . $myname . " My favorite color is " . $color;
>
> How do I write it so the email message text is on two lines,
> My name is BILL
> My favorite color is RED
>
> Thanks,
> Bill Freeburg

Hi Bill,

this should do the trick:
$message = 'My name is ' . $myname . chr(10) . ' My favorite color is ' .
$color;

Regards, Torsten

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

Reply via email to