Glad I could help. Here is a snippet of code I have used before when I need to output plain text in HTML. It escapes special HTML characters like < and it preserves line breaks as well as tabs. The reason I replace line feeds separately a second time, is sometimes you get line feeds without carriage returns. Yes, regex could simplify that a bit but I'll let you do that. :)
<!--- Escape any reserved HTML chars ---> <cfset my_string = htmleditformat(my_string)> <!--- Put in br's in place of carriage returns & line feeds ---> <cfset my_string = replacenocase(my_string,chr(13)&chr(10),"<br />","all")> <!--- Put in br's for the preview in place of line feeds ---> <cfset my_string = replacenocase(my_string, chr(10),"<br />","all")> <!--- Replace tabs with 5 spaces ---> <cfset my_string = replacenocase(my_string,chr(09)," ","all")> ~Brad -----Original Message----- From: Steve Good [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 2:36 PM To: CF-Talk Subject: Re: CFPOP #Body# and carriage returns I am indeed working with plain text emails. I will eventually be outputting the body in html. Thanks for the push in the right direction. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301002 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4