RE: CFPOP #Body# and carriage returns
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. :) ","all")> ","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
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. ~Steve http://goodcf.instantspot.com/blog Brad Wood wrote: > How are you outputting the body of the E-mail? If you are simply > outputting it on an HTML page, you will need to replace carriage > returns/line feeds with tags since HTML ignores them. > Either that, or place the output in pre tags. > I'm assuming you are dealing with a plain text E-mail. That may or may > not be a safe assumption to make though. > > ~Brad > > -Original Message- > From: Steve Good [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2008 2:21 PM > To: CF-Talk > Subject: CFPOP #Body# and carriage returns > > I am pulling data from a pop3 server using the cfpop tag and everything > is working smoothly, but I noticed that there are no carriage returns in > > the body of the emails. Do I need to specify a delimiter or anything or > > am I just SOL? > ~| 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:300992 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFPOP #Body# and carriage returns
How are you outputting the body of the E-mail? If you are simply outputting it on an HTML page, you will need to replace carriage returns/line feeds with tags since HTML ignores them. Either that, or place the output in pre tags. I'm assuming you are dealing with a plain text E-mail. That may or may not be a safe assumption to make though. ~Brad -Original Message- From: Steve Good [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 2:21 PM To: CF-Talk Subject: CFPOP #Body# and carriage returns I am pulling data from a pop3 server using the cfpop tag and everything is working smoothly, but I noticed that there are no carriage returns in the body of the emails. Do I need to specify a delimiter or anything or am I just SOL? -- ~| 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:300990 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFPOP #Body# and carriage returns
I am pulling data from a pop3 server using the cfpop tag and everything is working smoothly, but I noticed that there are no carriage returns in the body of the emails. Do I need to specify a delimiter or anything or am I just SOL? -- ~Steve http://goodcf.instantspot.com/blog ~| 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:300988 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4