[nycphp-talk] Line break string evaulation help
Cliff Hirsch
cliff at pinestream.com
Fri Jan 13 16:18:47 EST 2006
Thanks. The wiki is an eye opener. How can something so simple end up so
convoluted?!
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Andrew Yochum
Sent: Friday, January 13, 2006 4:10 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Line break string evaulation help
On Fri, Jan 13, 2006 at 04:10:50PM -0500, cliff wrote:
> define('NEWLINE', "\n");
>
> define ("EMAILFOOTER", NEWLINE.
> 'blah, blah, blah.'.NEWLINE.
> 'blah, blah, blah.'.NEWLINE.
> 'To login, click on the following link: '.URL);
>
> This works fine when viewing an email generated by this code in a
> browser- based email client, but fails to break lines in Microsoft
> Outlook on XP. What am I doing wrong?
Try "\r\n", which is a carriage return + line feed (\x0D\xOA)- the
windows/dos style. See:
http://en.wikipedia.org/wiki/CRLF
HTH,
Andrew
--
Andrew Yochum
Plexpod
andrew at plexpod.com
718-360-0879
_______________________________________________
New York PHP Talk Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org
More information about the talk
mailing list