[thelist] Line breaks in plain text email

Symeon Charalabides symeon at systasis.com
Mon Apr 6 11:30:51 CDT 2009


It sounds like you're using single, instead of double, quotes to enclose your line breaks. Using double quotes should fix that.

Also, you may have to use \r\n instead of simply \n for some windows-native email clients, but don't quote me on this.

>  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.

Symeon Charalabides (cosmopolite trainee)
-----------------------------------------
http://www.systasis.com
http://twitter.com/bluesymeon
http://www.linkedin.com/in/symeon
http://www.last.fm/user/bluesymeon



More information about the thelist mailing list