[thelist] Line breaks in plain text email

Marc Lough maclof at gmail.com
Mon Apr 6 11:05:48 CDT 2009


Store your variables with quotes..
Such as:

$string = "This has a line\nbreak.";

Instead of:

$string = 'This is a line\nbreak.';

That won't work.

2009/4/6 Barney Carroll <barney at clickwork.net>

> Sorry for asking what seems like a letmegooglethatforyou question but after
> searching in every approachable way, I'm still stumped on this (and please
> don't just give me what you think is a helpful search string):
>
> I am writing a plain text email feedback script and can't seem to get line
> breaks.
>
> I have tried /r, /n, \r, \n, //r, //n, %0D%0A … Everything gets printed as
> is (except in the case of double slashes, in which case one of them gets
> escaped). As far as I can see there is no PHP equivalent to writeln or
> writeLine, which is irritating.
>
> Any bright ideas?
>
>
> Regards,
> Barney Carroll
> Web designer & front-end developer
>
> web: www.clickwork.net
>
> mobile: +44 (0) 7594 506 381
> home: +44 (0) 118 975 0020
>
> twitter: @barneycarroll
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !



More information about the thelist mailing list