I have an HTML template that I read as s single string using fread(). My problem is that when I output the template (in an email attachment) there are all kinds of spurious line breaks which apparently are teh result of line-end stuff in the string. I tried using implode/explode to get rid of '\r' and '\n' but there seems to be something else that causes these breaks. Can someone tell me what characters I need to be stripping out to get this string corrected. TIA.