Jeff, Is there something about the evaluation of \n in different types of strings, eg single quotes/double quotes? (I don't know the answer)... FWIW I don't like (perhaps, I don't trust) the \r\n type of short-cuts.
Herewith some sample code: ... $LinkText = "Requested data can be found at: $source" . CRLF . CRLF . "Run date: $DocDate" . CRLF; ... The constants are defined in an Include/Require file: ... define( 'LF', chr( 10 ) ); define( 'CR', chr( 13 ) ); define( 'CRLF', CR.LF ); ... It works for me! Regards, =dn > How do I get it to do that? I tried replacing \n with \r\n but it's not > even finding any \n. This is really puzzling me. If I copy the data > from the database field using MySQL-Front and paste it into a word > processor it will have the line breaks retained. But what is it in the > data that shows these breaks? I can't find any \n in the data. Then > when it's sent via email of course there are no line breaks displayed. > Jeff Oien > > > Hiya, > > > > If I remember correctly, you much send both \r and \n to terminate a line > > on an e-mail, regardless of the platform. This should include the header > > aswell. > > > > At 12:00 14/04/2002 +0100, DL Neil wrote: > > >Jeff, > > > > > > > I have a form where someone enters the body of an email message > > > > into a <textarea> part of a form to be sent out to a list. Then a > > >script > > > > retrieves the body and sends it via email. However I can't get line > > >breaks > > > > to show up (I'm using MS Outlook) even if I enter the \n into the > > >textarea > > > > form and those \n show up in the database data. I must be missing > > > > something. Thanks for any help. > > > > > > > > >Line Breaks across different OpSys: > > > > > >*nix: newline character > > >Mac: carriage return character > > >Windows: both CR and LF > > > > > >LF = Newline/Line Break/Line Feed = ASCII chr(10) > > >CR = Carriage Return = ASCII chr(13) > > > > > >Regards, > > >=dn > > > > > > > > >-- > > >PHP Database Mailing List (http://www.php.net/) > > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php